From c8dd0e203683a2b9837d6b693234b7be132d885b Mon Sep 17 00:00:00 2001 From: Nir Limor Date: Thu, 27 Jul 2023 15:03:09 +0300 Subject: [PATCH] modifying the CORALOGIX_LOG_URL parameter to be a one-liner --- src/ecr/template.yaml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/ecr/template.yaml b/src/ecr/template.yaml index 5076105e..e6121058 100644 --- a/src/ecr/template.yaml +++ b/src/ecr/template.yaml @@ -135,12 +135,7 @@ Resources: app_name: !Ref ApplicationName sub_name: !Ref SubsystemName private_key: !Ref ApiKey - CORALOGIX_LOG_URL: !If - - IsRegionCustomUrlNotEmpty - - Fn::Sub: - - "https://ingress.${CustomDomain}/api/v1/logs" - - CustomDomain: !Ref CustomDomain - - !FindInMap [CoralogixDomainMap, !Ref CoralogixRegion, LogUrl] + CORALOGIX_LOG_URL: !If [IsRegionCustomUrlNotEmpty, !Sub "https://ingress.${CustomDomain}/api/v1/logs", !FindInMap [CoralogixDomainMap, !Ref CoralogixRegion, LogUrl]] Policies: - Statement: - Sid: EcrDescribeImageScanFindings