Express api running in aws lambda.
Move all access settings to github. Only allow user x to create tags/run workflows manually etc.
Multiple environments are supported via terraform workspaces.
- Changes to main are automatically deployed to dev.
- New tags will trigger deploy to QA.
git tag v1.0.0 && git push origin --tags
- Deploy tag to prod by manually running
Deploy Environment
workflow- Pass in the file name i.e.
v1.0.0.zip
along with a message.
- Pass in the file name i.e.
Minimum requires deployment iam privileges.
[
"dynamodb:*",
"s3:*",
"lambda:*",
"apigateway:*",
"iam:*"
]
Commits to main
will kick off a deployment.
Required github action variables.
AWS_ACCOUNT_ID
AWS_REGION
AWS_ROLE
role with deployment privilegesAWS_ROLE_VALIDATE_ONLY
role with readonly privileges (can be same asAWS_ROLE
)
Uses the aws-serverless-express npm library.