- Newest
- Most votes
- Most comments
Unfortunately, you cannot hide parameters. Instead, you can use optional parameters. When users use product A, they need not enter the parameters for product B. Also, you can note a comment as "optional" to the parameters.
amazon web services - AWS CloudFormation Template : How to hide parameter? - Stack Overflow
One more question, if hide is not possible, how about dynamically adding things? Like only add product A related parameters when product A is selected.
Thank you @jhashimoto for your answer, so sad to know this, we have more than a hundred parameters and can't hide part would make it super hard to consume.
@Yan Fen Guo I posted another answer.
we have more than a hundred parameters and can't hide part would make it super hard to consume.
Another idea. You could categorize the parameters with ParameterGroup. It would improve visibility.
Metadata:
AWS::CloudFormation::Interface:
ParameterGroups:
- Label:
default: "Product A Configuration"
Parameters:
- ExampleParameter1
- ExampleParameter2
...
- Label:
default: "Product B Configuration"
Parameters:
- ExampleParameter3
- ExampleParameter4
...
Thank you, we are already using ParameterGroup, just don't want to list all the unnecessary parameters, because we our cloud pak include several components and customer can select what they want.
Relevant content
- Accepted Answerasked 8 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 9 months ago
@Yan Fen Guo Unfortunately, CloudFormation doesn't have dynamic parameter addition.
OK, thank you for your confirmation.