https://github.com/connery-io/deploy-plugin-on-aws-lambda
A Terraform module and GitHub Actions to deploy Connery plugins on AWS Lambda.
https://github.com/connery-io/deploy-plugin-on-aws-lambda
deployment
Last synced: 5 months ago
JSON representation
A Terraform module and GitHub Actions to deploy Connery plugins on AWS Lambda.
- Host: GitHub
- URL: https://github.com/connery-io/deploy-plugin-on-aws-lambda
- Owner: connery-io
- License: mit
- Created: 2024-08-18T16:57:55.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-22T15:59:29.000Z (almost 2 years ago)
- Last Synced: 2024-08-22T18:04:45.651Z (almost 2 years ago)
- Topics: deployment
- Language: HCL
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# deploy-plugin-on-aws-lambda
A Terraform module and GitHub Actions to deploy Connery plugins on AWS Lambda.
## Usage
1. Add `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` to your GitHub repository secrets.
2. Create `/connery-plugin//v1/api-key` secret (SecureString) in AWS Systems Manager Parameter Store with the API key for your plugin server.
3. Create `./infrastructure/main.tf` in the root of your plugin repository with the following content:
```hcl
module "deploy-plugin-on-aws-lambda" {
source = "github.com/connery-io/deploy-plugin-on-aws-lambda?ref=v0.1.0"
plugin_name = ""
plugin_version = "v1"
}
```
4. Create `./github/workflows/deploy.yml` in the root of your plugin repository with the following content:
```yaml
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.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-central-1
```