From 240e6f24d252e3364d62a257279deaed422ccdfc Mon Sep 17 00:00:00 2001 From: Nathan Gillett Date: Fri, 18 Mar 2022 12:18:11 -0400 Subject: [PATCH] Fix distribution deployment Cache behavior of distributions require a list of trusted key groups, but was being given a string value in our template, exodus-lambda-deploy.yaml. This commit corrects the mistake. --- configuration/exodus-lambda-deploy.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configuration/exodus-lambda-deploy.yaml b/configuration/exodus-lambda-deploy.yaml index 6e41d6ff..ffb0c7e8 100644 --- a/configuration/exodus-lambda-deploy.yaml +++ b/configuration/exodus-lambda-deploy.yaml @@ -31,7 +31,7 @@ Parameters: Conditions: EnableKeyGroup: - !Not [!Equals [!Join ["", !Ref keyids], None]] + !Equals [!Join ["", !Ref keyids], None] Resources: KeyGroup: @@ -86,7 +86,7 @@ Resources: LambdaFunctionARN: !Ref OriginResponseFunc.Version TargetOriginId: !Sub S3-${project}-cdn-${env} TrustedKeyGroups: - !If + - !If - EnableKeyGroup - !Ref KeyGroup - !Ref AWS::NoValue