Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we disable parameter with respect to another parameter in cloudformation

Is there any way by which we can disable certain parameters if a user enters a certain value in preceding parameters. For example

    dbUseExisitngParamGroup:
        Type: String
        Description: Enable or disable custom DB Parameter Group
        Default: 'false'
        AllowedValues:
          - true
          - false      
    dbExisitngParamGroupName:
        Type: String
        Description: Name of custom DB Parameter Group that you want for this RDS.
    dbNewParamsGroupFamilyName:
        Type: String
        Description: Set this value if to a valid param family if you want to create a new ParamGroup for this DB.
        Default: 'aurora5.6'

If I enter false in "dbUseExisitngParamGroup" parameter then "dbExisitngParamGroupName" parameter should gets disable for the user to enter any value

like image 594
Vikas Rathore Avatar asked Feb 03 '26 06:02

Vikas Rathore


1 Answers

No.

But you can add conditions to your resources so that if dbUseExisitngParamGroup is supplied, dbExisitngParamGroupName is ignored.

like image 101
Asdfg Avatar answered Feb 06 '26 11:02

Asdfg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!