-
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
cdk migrate: nested shortform functions fail to migrate #30810
Comments
Reproducible. Looking at the code for
Unsure if this is root cause. Needs more investigation. |
Hey, not sure if this is what you are implying, but the ref function long form is not supposed to have the 'Fn::' prefix see docs |
@Shwaring Thanks for sharing the link. I just added my findings in #30810 (comment). Is it possible to share minimal almost complete template? The error might be thrown my |
|
@Shwaring Thanks for providing the sample template. Running
Upon searching through existing issues, it appears that this is similar to #29181. Please review. Thanks, |
Yep I believe that is the same issue |
@Shwaring Thanks for the confirmation. I will bring this and other issue to team's attention. Most likely would close this one since team might be tracking other issue internally. |
Has any progress been made on this issue? I am planning on migrate another set of CFN templates soon. |
Describe the bug
Cloudformation intrinisc finctions have short froms and long forms. When functions using the short form you get the unhelpful error message
migrate failed for
: <stackname> could not be generated because <element>: untagged and internally tagged enums do not support enum input at line 141 column 25
I believe this error message is unrelated and is simply a fallback error for some reason.
The following snippet shows that converting to long form functions migrates correctly but the nested shortform functions fail.
Expected Behavior
Generate a valid CDK stack
Current Behavior
migrate fails with
migrate failed for
: <stackname> could not be generated because <element>: untagged and internally tagged enums do not support enum input at line <line> column <column>
errorReproduction Steps
run
cdk migrate --stack-name my-stack --language typescript --from-path <template> --output-path <path for output>
usingPossible Solution
Current workaround is to expand these functions into the long forms
Additional Information/Context
No response
CDK CLI Version
2.145.0
Framework Version
No response
Node.js Version
v20.14.0
OS
linux
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: