Skip to content

Commit 81a91fc

Browse files
authored
Merge pull request #30 from chris-qa-org/truncate-lambda-function-name-length
Truncate Lambda function name length
2 parents 96528f3 + 4da2d24 commit 81a91fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lambda-cloudfront-invalidation-frontend.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ data "template_file" "lambda_cloudfront_invalidation_frontend_policy" {
99
module "lambda_cloudfront_invalidation_frontend" {
1010
source = "github.com/claranet/terraform-aws-lambda?ref=v1.4.0"
1111

12-
function_name = "${local.project_name}-cloudfront-invalidation-frontend"
12+
function_name = substr("${local.project_name}-cloudfront-invalidation-frontend", 0, 64)
1313
description = "${local.project_name} CloudFront invalidation frontend"
1414
handler = "function.lambda_handler"
1515
runtime = "python3.9"

0 commit comments

Comments
 (0)