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年前405ビュー
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.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ