Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit daaa529

Browse files
🐛 use qualified ARN to specify Lambda@Edge function
1 parent 024818d commit daaa529

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

‎module/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ resource "aws_lambda_function" "basic_auth" {
6262
source_code_hash = "${base64sha256(file("${path.module}/functions/lambda-edge-basic-auth-function.zip"))}"
6363
runtime = "nodejs8.10"
6464
description = "Protect CloudFront distributions with Basic Authentication"
65+
publish = true
6566
}
6667

6768
###

‎module/outputs.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
output "lambda_arn" {
2-
value = "${aws_lambda_function.basic_auth.arn}"
3-
description = "Lambda function ARN"
2+
value = "${aws_lambda_function.basic_auth.qualified_arn}"
3+
description = "Lambda function ARN with version"
44
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /