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.

질문됨 일 년 전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
답변함 일 년 전
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.

답변함 일 년 전
  • @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.

답변함 일 년 전
  • @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
답변함 일 년 전
  • 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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠