Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Docker repositories to Terraform #18

Open
4 tasks
nyarly opened this issue Aug 27, 2023 · 5 comments
Open
4 tasks

Add Docker repositories to Terraform #18

nyarly opened this issue Aug 27, 2023 · 5 comments

Comments

@nyarly
Copy link
Member

nyarly commented Aug 27, 2023

Dependency

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

  • Determine how the Incubator docker registry was configured
  • Add a Registry resource to shared_resources
  • Apply that configuration and use terraform state import to bring the Registry under IaC management
  • Refer to the registry in repository names (e.g. people-depot-backend-dev:latest) instead of hardcoding a machine-generated URL.

Resources/Instructions

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

@JasonEb
Copy link
Contributor

JasonEb commented Sep 21, 2023

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
Copy link
Member

What if any responsibility will ops have for this issue?

@ale210
Copy link

ale210 commented Sep 26, 2024

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

@ale210 ale210 moved this from New Issue Review to Ice Box in CoP: DevOps: Project Board Sep 26, 2024
@ExperimentsInHonesty
Copy link
Member

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

7 participants