iam: assumed_by=lambda_function returns Action 'undefined' is invalid RuntimeError #24705
alexpulver
started this conversation in
General
Replies: 2 comments 1 reply
-
I found the root cause. I should've used |
Beta Was this translation helpful? Give feedback.
0 replies
-
I actually tested it with TypeScript and I have to use I am not sure if we can improve the experience here with Python as it is not strongly typed. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
I have the following role definition in Python:
Synthesizing this code leads to the following error:
If I change the colon to any other character, e.g. dash, AWS CDK prints the value and not undefined (even though it is a valid error this time):
Expected Behavior
AWS CDK should synthesize correctly.
Current Behavior
AWS CDK produces the following stack trace with error:
Reproduction Steps
Try to define a role per below.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.69.0 (build 60a5b2a)
Framework Version
2.69.0
Node.js Version
v16.16.0
OS
macOS
Language
Python
Language Version
Python (3.9.11)
Other information
No response
Beta Was this translation helpful? Give feedback.
All reactions