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.

posta un anno fa407 visualizzazioni
4 Risposte
0
Risposta accettata

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
con risposta un anno fa
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.

con risposta un anno fa
  • @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.

con risposta un anno fa
  • @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
con risposta un anno fa
  • 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.

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande