GitHub Action to deploy the application to AWS EC2
This GitHub Action is based off of my blog to deploy multiple microservices whilst maintaing a single parent repository
How I designed and deployed a scalable microservice architecture with limited resources
- Set up the AWS credentials
- Fetch the environment variables from a bucket in AWS S3
- Check for updates in any git submodules
- Deploy each submodule separately to the AWS EC2 instance
Option | Type | Default | Required | Notes |
---|---|---|---|---|
get-env | boolean | true | ❌ | Flag to specify if ENV secrets should be fetched from the AWS Bucket. Set false if ENV secrets should not be fetched, otherwise ignore. |
env-bucket | string | - | ✔️ | Bucket where the ENV Secrets are stored. Specify the whole path, if ENV Secrets are stored deep inside the directory tree. |
aws-app-name | string | - | ✔️ | AWS App Name |
app-bucket | string | - | ✔️ | Bucket where the deployment should be stored |
app-group | string | - | ✔️ | AWS Deployment Group Name to deploy the application |
Deploy to AWS is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.