-
-
Notifications
You must be signed in to change notification settings - Fork 686
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
Target group with lambda module - permission error #210
Comments
Hi. Have you found out how to fix this issue ? |
This issue has been automatically marked as stale because it has been open 30 days |
This issue was automatically closed because of stale in 10 days |
FYI, there is a fix for this in #240 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
When a target group references a Lambda ARN that is created within the Lambda module, and the Lambda module references the target group to grant permission to execute it, there's an error:
This scenario occurs in the
complete-alb
example code, and is mentioned in the comments here: https://github.com/terraform-aws-modules/terraform-aws-alb/blob/master/examples/complete-alb/main.tf#L308-L312The workaround is to run
terraform apply
twice.Versions
Reproduction
Steps to reproduce the behavior:
terraform apply
with the example project: https://github.com/terraform-aws-modules/terraform-aws-alb/tree/master/examples/complete-albExpected behavior
Either:
terraform apply
works on the first try, if possible.Actual behavior
Error on the first
terraform apply
(mentioned in the description) and a success on the secondterraform apply
Additional context
I assume this is tricky because of the resource dependencies within the two modules... just curious if there's any workaround I'm missing, or if not a better way to communicate it as a known issue.
The text was updated successfully, but these errors were encountered: