An open API service indexing awesome lists of open source software.

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.

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
```