I have a parameter where I define the environment.
Parameters:
Environment:
Description: Environment. Example: qa, prod
Type: String
I'm creating an RDS cluster and, in relation to the environment, I would like to set one or the other value for BackupRetentionPeriod
The logic would be: if is 'prod' the value should be int 35, if not int 7.
BackupRetentionPeriod: !Ref Environment = prod, 35, 7
I read the documentation, checked several examples but still, I cannot make it work referencing to a parameter, and setting one or other value inline.