Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AWSTemplateFormatVersion: '2010-09-09'
- Parameters:
- SecurityGroupId:
- Type: String
- DatabaseASubnet:
- Type: String
- DatabaseBSubnet:
- Type: String
- DatabaseCSubnet:
- Type: String
- DBAvailabilityZone1:
- Type: String
- DBAvailabilityZone2:
- Type: String
- DBAvailabilityZone3:
- Type: String
- NodeType:
- Type: String
- AuoraPort:
- Type: Number
- MasterUsername:
- Type: String
- MasterUserPassword:
- Type: String
- Resources:
- AuroraCluster:
- Type: "AWS::RDS::DBCluster"
- Properties:
- AvailabilityZones:
- - Ref: DBAvailabilityZone1
- - Ref: DBAvailabilityZone2
- - Ref: DBAvailabilityZone3
- BackupRetentionPeriod: 7
- DBClusterParameterGroupName:
- Ref: ProdClusterParameterGroup
- DBSubnetGroupName:
- Ref: AuroraClusterSubnetGroup
- Engine: aurora
- EngineVersion: 5.6
- MasterUsername:
- Ref: MasterUsername
- MasterUserPassword:
- Ref: MasterUserPassword
- Port:
- Ref: AuroraPort
- PreferredBackupWindow: 07:00-9:00
- StorageEncrypted: true
- VpcSecurityGroupIds:
- Ref: SecurityGroupIds
- AuroraClusterInstance01:
- Type: "AWS::RDS::DBInstance"
- Properties:
- Engine: aurora
- AllowMajorVersionUpgrade: false
- AutoMinorVersionUpgrade: false
- DBClusterIdentifier:
- Ref: AuroraCluster
- DBInstanceClass:
- Ref: NodeType
- StorageEncrypted: true
- AuroraClusterInstance02:
- Type: "AWS::RDS::DBInstance"
- Properties:
- Engine: aurora
- AllowMajorVersionUpgrade: false
- AutoMinorVersionUpgrade: false
- DBClusterIdentifier:
- Ref: AuroraCluster
- DBInstanceClass:
- Ref: NodeType
- StorageEncrypted: true
- AuroraClusterInstance03:
- Type: "AWS::RDS::DBInstance"
- Properties:
- Engine: aurora
- AllowMajorVersionUpgrade: false
- AutoMinorVersionUpgrade: false
- DBClusterIdentifier:
- Ref: AuroraCluster
- DBInstanceClass:
- Ref: NodeType
- StorageEncrypted: true
- ProdClusterParameterGroup:
- Type: AWS::RDS::DBClusterParameterGroup
- Properties:
- Description: Parameter group for kinja production cluster
- Family: aurora5.6
- Parameters:
- binlog_format: ROW
- binlog_checksum: CRC32
- innodb_file_per_table: 1
- ProdDBParameterGroup:
- Type: AWS::RDS::DBParameterGroup
- Properties:
- Description: Parameter group for kinja production db servers
- Family: aurora5.6
- Parameters:
- wait_timeout: 31536000
- long_query_time: 31536000
- net_read_timeout: 31536000
- max_allowed_packet: 1073731824
- interactive_timeout: 31536000
- performance_schema: 1
- innodb_file_format: Barracuda
- AuroraClusterSubnetGroup:
- Type: "AWS::RDS::DBSubnetGroup"
- Properties:
- DBSubnetGroupDescription: aurora subnet group
- SubnetIds:
- - Ref: DatabaseASubnet
- - Ref: DatabaseBSubnet
- - Ref: DatabaseCSubnet
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement