summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenny Ballou <kballou@devnulllabs.io>2019-06-12 22:04:17 -0600
committerKenny Ballou <kballou@devnulllabs.io>2019-06-12 22:04:17 -0600
commitcb72106cb963a97802cd9051fc286137293b39fb (patch)
tree5bd2ca32cc89154e247d0fbb9f7fa895b5bbaac9
parent3efbf9da6fb5103c4dc3af09bba3838dbfd4b3ef (diff)
downloadkennyballou.com-cb72106cb963a97802cd9051fc286137293b39fb.tar.gz
kennyballou.com-cb72106cb963a97802cd9051fc286137293b39fb.tar.xz
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 <kballou@devnulllabs.io>
-rw-r--r--stacks/blog.tpl3
1 files changed, 2 insertions, 1 deletions
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"
}
}