Skip to content

Commit 72e0ce4

Browse files
authored
docs: Add lambda_function_arn format for lambda_function_name (#288)
1 parent b8b73cc commit 72e0ce4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ locals {
142142
])...)
143143

144144
# Filter out the attachments for lambda functions. The ALB target group needs permission to forward a request on to
145-
# the specified lambda function. This filtered list is used to create those permission resources
145+
# the specified lambda function. This filtered list is used to create those permission resources.
146+
# To get the lambda_function_name, the 6th index is taken from the lambda_function_arn format below
147+
# arn:aws:lambda:<region>:<account-id>:function:my-function-name:<version-number>
146148
target_group_attachments_lambda = {
147149
for k, v in local.target_group_attachments :
148150
(k) => merge(v, { lambda_function_name = split(":", v.target_id)[6] })

0 commit comments

Comments
 (0)