Skip to content

Commit 824adaf

Browse files
committed
Set up auto deploy from main branch
1 parent b480039 commit 824adaf

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Deploy
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
9+
concurrency:
10+
group: deploy
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: connery-io/deploy-plugin-on-aws-lambda/[email protected]
17+
with:
18+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
19+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
20+
aws-region: eu-central-1
21+
backend-config: backend_v1.hcl

infrastructure/backend_v1.hcl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
bucket = "connery-terraform-remote-state-np"
2+
key = "notion/v1/terraform.tfstate"
3+
region = "eu-central-1"
4+
encrypt = true
5+
dynamodb_table = "connery-terraform-statelock"

infrastructure/main.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
terraform {
2+
backend "s3" {}
3+
}
4+
5+
6+
module "deploy-plugin-on-aws-lambda" {
7+
source = "github.com/connery-io/deploy-plugin-on-aws-lambda?ref=v0.2.0"
8+
9+
plugin_name = "notion"
10+
plugin_version = "v1"
11+
}

0 commit comments

Comments
 (0)