-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
ALB: Lambda permissions should use aws:SourceArn #8271
Comments
It;s CDK 1.39 by the way. I am using Java 11 with CDK! |
Sure. But I'm a little confused. Can you explain to me how it is that the TargetGroup/LoadBalancer can apparently call the Lambda (since handling requests works, no?) but not see it to render it in the console? |
@rix0rrr Because of the permission below. But this is not enough clearly for AWS to show the ALB in the designer view of the LAMBDA { |
This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
This is both more secure and makes the ALB show up in the Lambda console.
If you create a Lambda with ALB integration
you don't see the ALB popping up in the AWS console in the designer TAB.
Should be like this:
I think you should explicit give the TG access to the lambda.
{
"Sid": "WhaTEVER",
"Effect": "Allow",
"Principal": {
"Service": "elasticloadbalancing.amazonaws.com"
},
"Action": "lambda:InvokeFunction",
"Resource": "LAMBDA",
"Condition": {
"ArnLike": {
"AWS:SourceArn": "TARGET GROUP"
}
}
}
Use Case
Proposed Solution
Other
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: