-
Notifications
You must be signed in to change notification settings - Fork 4k
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-cdk: Fn.find_in_map default_value not working in version 2.92.0 #26843
Comments
Is this only occurring for you in Codebuild? If so, are you sure that your codebuild If that isn't an issue, please provide a working reproduction which I'd be able to copy+paste and reproduce the error with, or provide a repository |
Additionally, does the error still occur if you use |
That was it. Not sure why pip was installing an older version as we did not specify a version in the requirements.txt file but it seems to have corrected itself. Thanks for your time. |
|
Describe the bug
I am attempting to use the new
default_value
behavior that was added in 2.91.0 (#26543) and receivingTypeError: Fn.find_in_map() got an unexpected keyword argument 'default_value'
when synthesizing in an AWS CodeBuild project.Code:
The build project shows the CDK version:
I was asked to create this issue by AWS Support as they were able to replicate the error message as well.
Expected Behavior
The template successfully synthesizes using the mapping with a default value.
Current Behavior
Synthesize fails with
TypeError: Fn.find_in_map() got an unexpected keyword argument 'default_value'
.Reproduction Steps
Create a mapping:
Attempt to set a value using
Fn.find_in_map
:Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.92.0 (build bf62e55)
Framework Version
No response
Node.js Version
16
OS
AWS Linux (CodeBuild aws/codebuild/standard:6.0)
Language
Python
Language Version
3.10
Other information
No response
The text was updated successfully, but these errors were encountered: