Open ben851 opened 1 year ago
My initial thoughts:
There is a custom module that can build and push docker images but it is expecting the dockerfile to be a path on the system. When I tried using git clone as a pre-hook, the provider constantly crashed.
I did a PoC with the lambda API to move the ECR to a separate folder and then use null_resources to execute docker commands and build/push the image. It works but is clunky, going to bounce it off of Pat and continue investigation to better ways.
Currently blocked by task 103 - automate ACM certificate validation process, which is in turn blocked by task #36 move the DNS to notify aws accounts.
waiting for the ACM validation changes
ACM validation deployed to Prod. Will dust off my docker PR and work on merging this afternoon.
@ben851 was able to build the whole environment without code changes yesterday. But destroying an environment cause problems as some resources failed to get deleted. Ben will investigate a script to nuke everything if he can't get his ways using Terraform.
We are reviewing that PR at the moment: https://github.com/cds-snc/notification-terraform/pull/764
Description
As a developer/operator of GC Notify, I would like to be able to deploy the infrastructure without having dependencies on the application. Currently, we are unable to deploy the environment from scratch because AWS expects the docker image to exist when deploying a lambda function.
Affected components:
WHY are we building?
WHAT are we building?
Investigate different options for how to decouple the application from the infrastructure
VALUE created by our solution
We will be able to better maintain our infrastructure, and deploy to new test environments
Acceptance Criteria
QA Steps