Skip to content

Commit

Permalink
Add deployment scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
machulav committed Sep 10, 2024
1 parent 37f9a99 commit d17e6e4
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deploy

on:
workflow_dispatch:
push:
branches:
- main

concurrency:
group: deploy

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: connery-io/deploy-plugin-on-aws-lambda/[email protected]
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-central-1
backend-config: backend_v1.hcl
5 changes: 5 additions & 0 deletions infrastructure/backend_v1.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
bucket = "connery-terraform-remote-state-np"
key = "coda/v1/terraform.tfstate"
region = "eu-central-1"
encrypt = true
dynamodb_table = "connery-terraform-statelock"
11 changes: 11 additions & 0 deletions infrastructure/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
terraform {
backend "s3" {}
}


module "deploy-plugin-on-aws-lambda" {
source = "github.com/connery-io/deploy-plugin-on-aws-lambda?ref=v0.2.0"

plugin_name = "coda"
plugin_version = "v1"
}

0 comments on commit d17e6e4

Please sign in to comment.