Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Add lambda_function_arn format for lambda_function_name #288

Merged
merged 1 commit into from
Apr 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ locals {
])...)

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