Skip to content

Commit c0289a4

Browse files
authored
Merge pull request #3 from SPHTech-Platform/add-cloudfront-apigw-support
Add cloudfront apigw support
2 parents f715060 + a330e44 commit c0289a4

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Diff for: outputs.tf

+25
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,28 @@ output "lambda_role_unique_id" {
3434
description = "The unique id of the IAM role created for the Lambda Function"
3535
value = module.lambda.lambda_role_unique_id
3636
}
37+
38+
# For Lambda Edge and Cloudfront Integration
39+
40+
#For Lambda@Edge Association with cloudfront
41+
output "qualified_arn" {
42+
description = "The qualified arn of the lambda function to be associated with Cloudfront as a Lambda@Edge function"
43+
value = module.lambda.lambda_function_qualified_arn
44+
}
45+
46+
#For using lambda as origin for cloudfront
47+
output "function_url" {
48+
description = "The function url of lambda function to be able to be set as cloudfront origin"
49+
value = module.lambda.lambda_function_url
50+
}
51+
52+
output "function_url_id" {
53+
description = "The function url ID of lambda function to be able to be set as cloudfront origin"
54+
value = module.lambda.lambda_function_url_id
55+
}
56+
57+
#To associate lambdas with api gateway integration
58+
output "invoke_arn" {
59+
description = "The invoke arn of lambda function for APIGW integration"
60+
value = module.lambda.lambda_function_invoke_arn
61+
}

0 commit comments

Comments
 (0)