File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
terraform/services/ecr-cleanup Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 1- TARGET_ENVS=" dpc -test dpc -prod"
1+ TARGET_ENVS=" cdap -test cdap -prod"
Original file line number Diff line number Diff line change 11locals {
22 full_name = " ${ var . app } -${ var . env } -ecr-cleanup"
33
4- repo_list_by_app_env = {
5- dpc = {
6- test = [" dpc-web-admin" , " dpc-web-portal" ]
7- prod = []
8- }
4+ repo_list_by_env = {
5+ test = [" dpc-web-admin" , " dpc-web-portal" ]
6+ prod = []
97 }
108}
119module "standards" {
@@ -59,7 +57,7 @@ resource "aws_ssm_parameter" "repo_list" {
5957 name = " /${ var . app } /${ var . env } /ecr-cleanup/repos"
6058 type = " SecureString"
6159 description = " Comma-separated list of ECR repository names to clean up"
62- value = jsonencode (local. repo_list_by_app_env [ var . app ] [var . env ])
60+ value = jsonencode (local. repo_list_by_env [var . env ])
6361}
6462
6563data "archive_file" "ecr_cleanup" {
You can’t perform that action at this time.
0 commit comments