Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
670 B
3
Indexable
Never
  #Aurora

  DatabaseCluster: 
    Type: "AWS::RDS::DBCluster"
    Properties: 
      DatabaseName: wordpressdb
      Port: 3306
      EngineMode: serverless
      ScalingConfiguration:
        AutoPause: false
        MinCapacity: 2
        MaxCapacity: 16
      VpcSecurityGroupIds:
       - !Ref DatabaseSecurityGroup
      DBSubnetGroupName: !Ref DataSubnetGroup
      Engine: aurora
      MasterUserPassword: "supersecret"
      MasterUsername: "wordpress"
  DataSubnetGroup: 
    Type: "AWS::RDS::DBSubnetGroup"      
    Properties: 
      DBSubnetGroupDescription: "this is a description."
      SubnetIds: 
        - !Ref DataSubnetA
        - !Ref DataSubnetB