Change ECR to use TF official module#151
Merged
Merged
Conversation
PaulLaux
reviewed
Jul 8, 2026
PaulLaux
left a comment
There was a problem hiding this comment.
-
In
testnet-single-node-deploy/infra/terragrunt-aws-environments/dev/eu-central-1/zsa/ecs-swaps/terragrunt.hclwe haveimage = "${dependency.ecr.outputs.ecr-url}:latest"but we no longer haveoutputs.ecr-url. You deleted it in this PR. Same forinfra/terragrunt-aws-environments/dev/eu-central-1/zsa/ecs/terragrunt.hclandinfra/terragrunt-aws-environments/dev/eu-central-1/zsa/lambda/lambda/terragrunt.hcl -
changing to
terraform {
source = "git::https://github.com/terraform-aws-modules/terraform-aws-ecr.git?ref=v2.4.0"
}
together with force_delete = true will remove the old module (the id has changes) together with all previous images. Is that what we want?
- This PR should be applied after #150 (dependant on cicd-user changes). A better way is to point this PR on top 150 to force order.
Collaborator
Author
|
PaulLaux
approved these changes
Jul 13, 2026
ronkq
added a commit
that referenced
this pull request
Jul 14, 2026
* Change CICD GH IAM user to use TF official module * Change ECR to use TF official module (#151)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change ECR provisioning to use TF official module.
When moving to use official modules we can't customize them, so some resources could be removed.
In terms of terraform state, terragrunt will consider it as a new module, where we will import the cloud resources to, and make sure the plan is without any changes, to keep our code aligned to the existing cloud resources. At this point we'll have 2 different terragrunt modules "owning" the same cloud resources, after which we will remove the old module references from the state.