Untitled

 avatar
unknown
plain_text
a year ago
475 B
5
Indexable
Parameters:
  EnableMultiAZ:
    Type: String
    Default: "true"
    AllowedValues: ["true", "false"]
    Description: "Enable Multi-AZ deployment for the RDS instance"

Conditions:
  EnableMultiAZCondition: !Equals [!Ref EnableMultiAZ, "true"]

Resources:
  MyRdsInstance:
    Type: AWS::RDS::DBInstance
    Properties:
      Engine: mysql
      DBInstanceClass: db.t2.micro
      MultiAZ: !If [EnableMultiAZCondition, true, false]
      # Other RDS instance configuration
Editor is loading...
Leave a Comment