hackforla / incubator

https://github.com/orgs/hackforla/projects/73/views/5
GNU General Public License v2.0
3 stars 14 forks source link

Add Docker repositories to Terraform #18

Open nyarly opened 1 year ago

nyarly commented 1 year ago

Overview

Incubator projects use AWS Docker repositories with a machine-generated URL - a good sign that a resource should be added to Terraform.

Action Items

Resources/Instructions

https://developer.hashicorp.com/terraform/language/state/import https://registry.terraform.io/providers/-/aws/latest/docs/resources/ecr_repository

JasonEb commented 1 year ago

https://github.com/hackforla/incubator/blob/ba9bb47dc6f28cc2b9b27274e1e3b026a8abb3d8/terraform-incubator/people-depot/dev/main.tf#L29C24-L29C24

JasonEb commented 1 year ago

Looks like the ECR url is going to be static - I don't think that makes it as dynamic or machine generated.

Both the terraform documentation and the AWS ECR documentation point out that the url is of the form https://<:aws_account_id>.dkr.ecr.<:region-name>.amazonaws.com

image

Our account_id and region should rarely change. Nonetheless think we can wrap that url into a shared resource then reference that

robinglov commented 7 months ago

What if any responsibility will ops have for this issue?

ale210 commented 1 week ago

somewhat unclear here, but jason has a good point in that they are not precisely random or machine generated. could possibly be added as output to a project but tbd

ExperimentsInHonesty commented 1 week ago

@ale210 Please do not add things to the icebox in they have no defined dependency. Otherwise, we have to keep re-reading the issue over and over again to determine when to take it out of the icebox. Here are examples