-
Notifications
You must be signed in to change notification settings - Fork 246
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
(cdk migrate): While running cdk migrate
with python, error received (NameError: name 'props_access_keys_rotated_param_max_access_key_age' is not defined.)
#4652
Comments
Hi @nishikkr , thanks for reaching out. I downloaded this yaml file and was able to migrate this yaml to my stack in Python on Mac- snippet of stack created successfully - The directory structure created - I did the same for Typescript language and it succedded with that as well - Here is a useful post published by CDK Team on CDK Migrate command. Might be helpful. I would request you to try again and get back if the issue persists. Thanks. |
cdk migrate
with python, error received (NameError: name 'props_access_keys_rotated_param_max_access_key_age' is not defined.)
Sorry I didn’t describe the issue clear enough cdk migrate does complete without the error for both language but for cdk synth fails on python but doesn’t for typescript |
@nishikkr , thanks for clarifying. I will investigate it further and get back to you. |
@nishikkr , I am able to repro this in Python (however it succeeds in Typescript)- NameError: name 'props_access_keys_rotated_param_max_access_key_age' is not defined. Did you mean: 'access_keys_rotated_param_max_access_key_age'? This is related to JSII Runtime so marking it as appropriate for |
Describe the bug
Use the AWS Config Conformance Pack YAML file:
https://github.com/awslabs/aws-config-rules/blob/master/aws-config-conformance-packs/Operational-Best-Practices-for-CMMC-2.0-Level-2.yaml
Run the CDK migrate command:
Attempt to synthesize the stack:
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
Expected to synthezie
Current Behavior
Failes error stated above
Reproduction Steps
Use the AWS Config Conformance Pack YAML file:
https://github.com/awslabs/aws-config-rules/blob/master/aws-config-conformance-packs/Operational-Best-Practices-for-CMMC-2.0-Level-2.yaml
Run the CDK migrate command:
Attempt to synthesize the stack:
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.160.0 (build 7a8ae02)
Framework Version
No response
Node.js Version
v18.20.4
OS
MacOS, confirmed it with Windows as well
Language
Python
Language Version
Python 3.12.5
Other information
No response
The text was updated successfully, but these errors were encountered: