-
Notifications
You must be signed in to change notification settings - Fork 13
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
Transform AWS::LanguageExtensions failed with: Condition layout is incorrect. Rollback requested by user #147
Comments
Discovered this same bug recently. You can trigger it by adding Seems to be a bug that's merely triggered on the word The problematic block that triggered the bug was: ...
ContainerDefinitions:
- Name: caddy
DependsOn:
- Condition: HEALTHY
ContainerName: app
... Removing the |
Seeing the same issue on my side. Been working on a feature for a few weeks and this has been a blocker for me. |
Using Transform: AWS::LanguageExtensions
Parameters:
Environment:
Description: Environment
Type: String
Mappings:
Environment:
production:
Something: true
Resources:
WebACL:
Type: AWS::WAFv2::WebACL
Properties:
Rules:
- Key: !If
- !FindInMap [Environment, !Ref Environment, Something] # <-- This is wrong
- A
- B This is the obscure error message 👎
But when just removing the extension - Transform: AWS::LanguageExtensions The error message become much more clear 👍
|
Community Note
Tell us about the bug
What goes wrong? Please describe the issue in as much detail as possible.
The following code
if deployed in cloudformation will give error:
Transform AWS::LanguageExtensions failed with: Condition layout is incorrect. Rollback requested by user.
While the virtually same template down below will work with no issues.
The difference?
The line order. In the second template notice that Type: 'AWS::SNS::Topic' goes at the end. After the Condition statement of the resource.
Expected behavior
I expected the first template to work with no issues.
Observed behavior
The first template failed with error
Transform AWS::LanguageExtensions failed with: Condition layout is incorrect. Rollback requested by user.
The second template worked with no issues.
Test cases
Parameters:
Use prod for Environment
Use string comma delimited values for pRepoARNs1 and prepoARNs2.
Additional context
The text was updated successfully, but these errors were encountered: