Secret Name: Fill in you secret name under environment/SECRET
Secrets Manager Permissions: Update iamRoleStatements/Resource to contain your secret name or full ARN.
Lambda is configured to run periodically every half an hour, you may change that under functions/app/schedule.
Optional Configuration
You may tweak the Lambda's behavior via additional environmental variables:
DEBUG=true - Enable verbose logs
LOCAL=true - Toggle to execute outside of AWS Lambda environment (useful during local development)
OPERATIONAL_REGION=<region> - Region in which lambda should manage the security groups. This allows to manage multiple regions from multiple lambdas deployed in a single region (default: us-east-1)
SECRET_REGION=<region> - Secrets Manager region in which a whitelist secret is created. Allows to maintain a single source of truth for lambdas deployed in multiple regions (default: us-east-1)
Deploy with: serverless deploy --stage prod or create Lambda manually
In order to use latest version (master branch), you may clone the repository and compile the project by running make release before deploying it
Notes
You may build the project for linux/amd64 using Go or handy make scripts on Linux/MacOS workstation: