food-oasis icon indicating copy to clipboard operation
food-oasis copied to clipboard

Updated Github Action to enable CI/CD into AWS Infra

Open darpham opened this issue 3 years ago • 3 comments

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

  1. Document Environment variables currently used for Production in Heroku.
  2. Separate the environment variables into non-sensitive or sensitive (secrets).
  3. Terraform Apply with these added in the terraform.tfvars
  4. Retrieve the new task-definition.json post Terraform Apply.
  5. Filter out the un-needed sections of the json
  6. Update the json in the Repo
  7. Add the AWS Keys, find the gh_action user keys via Terraform terraform output
  8. Update the .github/workflows/deployToAWS.yaml
  9. 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.

darpham avatar Feb 24 '21 04:02 darpham

Please use branch: https://github.com/hackforla/food-oasis/tree/aws-deployment

darpham avatar Feb 24 '21 04:02 darpham

Hi @darpham or @prashantsingh071993 is there an update on this? thanks,

ktjnyc avatar Apr 02 '21 15:04 ktjnyc

Issue is 18 months old. Moving to Icebox for later priority assessment. May need to be closed as Stale and rewritten.

staceyrebekahscott avatar Aug 04 '22 22:08 staceyrebekahscott