From cb72106cb963a97802cd9051fc286137293b39fb Mon Sep 17 00:00:00 2001 From: Kenny Ballou Date: Wed, 12 Jun 2019 22:04:17 -0600 Subject: blog: use the ARN for lambda function version Attempt to automatically use the correct version each deployment instead of working around the current bug where each changeset requires a manual fix to the CloudFront distribution to use the correct lambda version. Signed-off-by: Kenny Ballou --- stacks/blog.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stacks/blog.tpl b/stacks/blog.tpl index d422935..6ab65d1 100644 --- a/stacks/blog.tpl +++ b/stacks/blog.tpl @@ -226,7 +226,8 @@ "URIRewriteLambdaVersion": { "Type": "AWS::Lambda::Version", "Properties": { - "FunctionName": {"Ref": "URIRewriteLambdaFunction"}, + "FunctionName": {"Fn::GetAtt": [ + "URIRewriteLambdaFunction", "Arn"]}, "Description": "Lambda Function performing URI rewriting" } } -- cgit v1.2.1