From e8e411e4c611cd368a5f5c6fbfa186a19aab92ea Mon Sep 17 00:00:00 2001 From: Katlyn Alo <26312638+Kat-Alo@users.noreply.github.com> Date: Mon, 13 Nov 2023 19:22:03 -0700 Subject: [PATCH] updating dev and prod image reference to be the hash rather than latest --- cfn/configs/klaxon/dev/us-east-1/config.yml | 2 +- cfn/configs/klaxon/prod/us-east-1/config.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cfn/configs/klaxon/dev/us-east-1/config.yml b/cfn/configs/klaxon/dev/us-east-1/config.yml index a054bf49..94f2da09 100644 --- a/cfn/configs/klaxon/dev/us-east-1/config.yml +++ b/cfn/configs/klaxon/dev/us-east-1/config.yml @@ -407,7 +407,7 @@ context: # image = provider/project/repo:tag # In order for "image" to be reconized as raw_image_path, it must contain a "/" or a ":" # - raw_image_path: ${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/klaxon:dev-latest + raw_image_path: !_join [":", "${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/klaxon", "dev-{{resolve:ssm:/deployments/klaxon-dev/latest}}"] environment: DATABASE_URL: "{{resolve:secretsmanager:/klaxon/aurora-postgresql-dev/app:SecretString:database-url}}" diff --git a/cfn/configs/klaxon/prod/us-east-1/config.yml b/cfn/configs/klaxon/prod/us-east-1/config.yml index 20b5b160..302be352 100644 --- a/cfn/configs/klaxon/prod/us-east-1/config.yml +++ b/cfn/configs/klaxon/prod/us-east-1/config.yml @@ -409,7 +409,7 @@ context: # image = provider/project/repo:tag # In order for "image" to be reconized as raw_image_path, it must contain a "/" or a ":" # - raw_image_path: ${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/klaxon:prod-latest + raw_image_path: !_join [":", "${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/klaxon", "prod-{{resolve:ssm:/deployments/klaxon-prod/latest}}"] environment: