Advertisement
Guest User

Untitled

a guest
Feb 8th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.93 KB | None | 0 0
  1. AWSTemplateFormatVersion: '2010-09-09'
  2. Parameters:
  3. SecurityGroupId:
  4. Type: String
  5. DatabaseASubnet:
  6. Type: String
  7. DatabaseBSubnet:
  8. Type: String
  9. DatabaseCSubnet:
  10. Type: String
  11. DBAvailabilityZone1:
  12. Type: String
  13. DBAvailabilityZone2:
  14. Type: String
  15. DBAvailabilityZone3:
  16. Type: String
  17. NodeType:
  18. Type: String
  19. AuoraPort:
  20. Type: Number
  21. MasterUsername:
  22. Type: String
  23. MasterUserPassword:
  24. Type: String
  25. Resources:
  26. AuroraCluster:
  27. Type: "AWS::RDS::DBCluster"
  28. Properties:
  29. AvailabilityZones:
  30. - Ref: DBAvailabilityZone1
  31. - Ref: DBAvailabilityZone2
  32. - Ref: DBAvailabilityZone3
  33. BackupRetentionPeriod: 7
  34. DBClusterParameterGroupName:
  35. Ref: ProdClusterParameterGroup
  36. DBSubnetGroupName:
  37. Ref: AuroraClusterSubnetGroup
  38. Engine: aurora
  39. EngineVersion: 5.6
  40. MasterUsername:
  41. Ref: MasterUsername
  42. MasterUserPassword:
  43. Ref: MasterUserPassword
  44. Port:
  45. Ref: AuroraPort
  46. PreferredBackupWindow: 07:00-9:00
  47. StorageEncrypted: true
  48. VpcSecurityGroupIds:
  49. Ref: SecurityGroupIds
  50. AuroraClusterInstance01:
  51. Type: "AWS::RDS::DBInstance"
  52. Properties:
  53. Engine: aurora
  54. AllowMajorVersionUpgrade: false
  55. AutoMinorVersionUpgrade: false
  56. DBClusterIdentifier:
  57. Ref: AuroraCluster
  58. DBInstanceClass:
  59. Ref: NodeType
  60. StorageEncrypted: true
  61. AuroraClusterInstance02:
  62. Type: "AWS::RDS::DBInstance"
  63. Properties:
  64. Engine: aurora
  65. AllowMajorVersionUpgrade: false
  66. AutoMinorVersionUpgrade: false
  67. DBClusterIdentifier:
  68. Ref: AuroraCluster
  69. DBInstanceClass:
  70. Ref: NodeType
  71. StorageEncrypted: true
  72. AuroraClusterInstance03:
  73. Type: "AWS::RDS::DBInstance"
  74. Properties:
  75. Engine: aurora
  76. AllowMajorVersionUpgrade: false
  77. AutoMinorVersionUpgrade: false
  78. DBClusterIdentifier:
  79. Ref: AuroraCluster
  80. DBInstanceClass:
  81. Ref: NodeType
  82. StorageEncrypted: true
  83. ProdClusterParameterGroup:
  84. Type: AWS::RDS::DBClusterParameterGroup
  85. Properties:
  86. Description: Parameter group for kinja production cluster
  87. Family: aurora5.6
  88. Parameters:
  89. binlog_format: ROW
  90. binlog_checksum: CRC32
  91. innodb_file_per_table: 1
  92. ProdDBParameterGroup:
  93. Type: AWS::RDS::DBParameterGroup
  94. Properties:
  95. Description: Parameter group for kinja production db servers
  96. Family: aurora5.6
  97. Parameters:
  98. wait_timeout: 31536000
  99. long_query_time: 31536000
  100. net_read_timeout: 31536000
  101. max_allowed_packet: 1073731824
  102. interactive_timeout: 31536000
  103. performance_schema: 1
  104. innodb_file_format: Barracuda
  105. AuroraClusterSubnetGroup:
  106. Type: "AWS::RDS::DBSubnetGroup"
  107. Properties:
  108. DBSubnetGroupDescription: aurora subnet group
  109. SubnetIds:
  110. - Ref: DatabaseASubnet
  111. - Ref: DatabaseBSubnet
  112. - Ref: DatabaseCSubnet
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement