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.

已提問 1 年前檢視次數 406 次
4 個答案
0
已接受的答案

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
已回答 1 年前
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.

已回答 1 年前
  • @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.

已回答 1 年前
  • @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
已回答 1 年前
  • 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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南