-
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
aws-lambda: Cannot grant url invoke by ArnPrincipal #31059
Comments
@95Wictor Good afternoon. Thanks for opening the issue. I was able to reproduce the issue at my end getting error Here are my findings for the root cause:
The reason for using a map for Thanks, |
Thanks for looking into it. I see you've added the "response-requested" label, but I don't see any questions in your comment. Do you need anything from me? |
@95Wictor The response-requested label was added so that you could review the findings. Based on the findings, this is not a bug. Hence, closing this issue. Thanks, |
Comments on closed issues and PRs are hard for our team to see. |
Describe the bug
The CDK fails to synth if an ArnPrincipal is given to aws-lambda.Function.grantInvokeUrl.
Expected Behavior
grantInvokeUrl should accept ArnPrincipal, as grantInvoke does and as aws-s3.Bucket.grantRead does.
Current Behavior
En error occurs during synthesis: Resolution error: ID components may not include unresolved tokens: InvokeFunctionUrlArnPrincipal(${Token[TOKEN.59]}).
Reproduction Steps
Create a new CDK Typescript app, and replace the sample stack code with the following. Then run
npx cdk synth
.Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.151.0 (build b8289e2)
Framework Version
No response
Node.js Version
20.9.0
OS
Windows 11
Language
TypeScript
Language Version
5.5.4
Other information
No response
The text was updated successfully, but these errors were encountered: