How to hide a parameter group based on another parameter's value?

0

I want to hide a parameter group based on another parameter's value, is this possible in AWS CloudFromation? For example, user can select install product A or product B, when product A selected, I don't want to display product B related parameters. I've tried condition but it doesn't work.

preguntada hace un año406 visualizaciones
4 Respuestas
0
Respuesta aceptada

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

profile picture
respondido hace un año
0

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.

respondido hace un año
  • @Yan Fen Guo Unfortunately, CloudFormation doesn't have dynamic parameter addition.

  • OK, thank you for your confirmation.

0

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.

respondido hace un año
  • @Yan Fen Guo I posted another answer.

0

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
          ...

How to Make Friendly Parameters for the CloudFormation Console | by Kelli Mohr | Slalom Technology | Medium

profile picture
respondido hace un año
  • 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.

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas