-
Notifications
You must be signed in to change notification settings - Fork 18
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
Named conditions fail to migrate #694
Comments
The error is weird but shockingly isn't named conditions that is the problem. It seems that Fn::Equals in combination with Fn::Join is I'm unsure why. As an example, I took your template and modified to remove the Fn::Join:
and gets past the issue. |
Ahh, this is a classic case of When I initially wrote the Conditions parser, I took the documentation quite literally: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-conditions.html#w41aac23c24c21c29 The topics quite literally show the only supported conditions are Is this a valid template? If so, it may make sense to just support all functions and let the world run wild here. |
The template is valid and does run. It was in production for years before I migrated everything to CDK |
Dope. Then it's valid to say that CFN doesn't enforce its own documentation and it's best to assume all meta functions work in conditions. |
When attempting to migrate a CloudFormation template that contains a named condition it failed with an error.
CloudFormation:
Error:
The text was updated successfully, but these errors were encountered: