Skip to content

Commit

Permalink
Add deployment scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
machulav committed Oct 28, 2024
1 parent 33031ed commit fb3ff01
Show file tree
Hide file tree
Showing 3 changed files with 36 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/build-and-deploy@v0.1.0
with:
aws-access-key-id: ${{ secrets.PLUGINS_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.PLUGINS_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 = "deepl/v1/terraform.tfstate"
region = "eu-central-1"
encrypt = true
dynamodb_table = "connery-terraform-statelock"
10 changes: 10 additions & 0 deletions infrastructure/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
terraform {
backend "s3" {}
}

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

plugin_name = "deepl"
plugin_version = "v1"
}

0 comments on commit fb3ff01

Please sign in to comment.