I would like to have some conditional parameters in cloud formation that are showed in AWS Console only in particular case.
Parameters:
A:
Type: String
AllowedValues:
- x
- y
B:
Type: Number
Default: 3
Expected result during stack creation in browser AWS Console (CloudFormation -> Stacks -> Create Stack).
If parameter A is set to x then show parameter B, else do not show parameter B.
Is that something I can achieve?
Not directly. Usually I just write in the description: "B will be ignored if A is set to x". Then I use a condition and a !If statement in the resource to use B if A is set to y and use 3 if A is set to x.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With