food-oasis
food-oasis copied to clipboard
Updated Github Action to enable CI/CD into AWS Infra
Overview
We want to add Github Action workflow to enable automated deployment.
This requires updated the pre-existing worflow .github/workflows/deployToDockerHub.yaml
We will want to append the workflow to deploy the new Docker Image into AWS.
Use pre-existing branch aws-deployment to avoid tainting master branch history/log
Action Items
- Document Environment variables currently used for Production in Heroku.
- Separate the environment variables into non-sensitive or sensitive (secrets).
- Terraform Apply with these added in the
terraform.tfvars
- Retrieve the new
task-definition.json
post Terraform Apply. - Filter out the un-needed sections of the json
- Update the json in the Repo
- Add the AWS Keys, find the gh_action user keys via Terraform
terraform output
- Update the
.github/workflows/deployToAWS.yaml
- Validate, test, update, yaml until it works with no issues. (This might take several iterations, so using the
aws-deployment
branch would be best)
Resources/Instructions
Example of working workflow that could be picked apart and re-used for the deployment side. We don't need to Auth for pulling the Image as they're public.
Please use branch: https://github.com/hackforla/food-oasis/tree/aws-deployment
Hi @darpham or @prashantsingh071993 is there an update on this? thanks,
Issue is 18 months old. Moving to Icebox for later priority assessment. May need to be closed as Stale and rewritten.