Last active
March 17, 2023 15:55
-
-
Save mshakhomirov/1d790135f623ec092d191d34952faa07 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWSTemplateFormatVersion: 2010-09-09 | |
Description: >- | |
AWS CloudFormation Sample Template: Sample template showing how to | |
create an Amazon RDS Database Instance with provisioned IOPs.**WARNING** This | |
template creates an Amazon Relational Database Service database instance. You | |
will be billed for the AWS resources used if you create a stack from this | |
template. | |
Parameters: | |
DBUser: | |
Default: root | |
NoEcho: 'true' | |
Description: The database admin account username | |
Type: String | |
MinLength: '1' | |
MaxLength: '16' | |
AllowedPattern: '[a-zA-Z][a-zA-Z0-9]*' | |
ConstraintDescription: must begin with a letter and contain only alphanumeric characters. | |
DBPassword: | |
Default: AmazingPassword | |
NoEcho: 'true' | |
Description: The database admin account password | |
Type: String | |
MinLength: '8' | |
MaxLength: '41' | |
AllowedPattern: '[a-zA-Z0-9]*' | |
ConstraintDescription: must contain only alphanumeric characters. | |
Resources: | |
RDSCluster: | |
Properties: | |
DBClusterParameterGroupName: | |
Ref: RDSDBClusterParameterGroup | |
# DBSubnetGroupName: | |
# Ref: DBSubnetGroup | |
Engine: aurora | |
MasterUserPassword: | |
Ref: DBPassword | |
MasterUsername: | |
Ref: DBUser | |
Type: "AWS::RDS::DBCluster" | |
RDSDBClusterParameterGroup: | |
Properties: | |
Description: "CloudFormation Sample Aurora Cluster Parameter Group" | |
Family: aurora5.6 | |
Parameters: | |
time_zone: US/Eastern | |
Type: "AWS::RDS::DBClusterParameterGroup" | |
RDSDBInstance1: | |
Type: 'AWS::RDS::DBInstance' | |
Properties: | |
DBClusterIdentifier: | |
Ref: RDSCluster | |
# AllocatedStorage: '20' | |
DBInstanceClass: db.t2.small | |
Engine: aurora | |
PubliclyAccessible: "true" | |
DBInstanceIdentifier: MyMySQLDB | |
RDSDBParameterGroup: | |
Type: 'AWS::RDS::DBParameterGroup' | |
Properties: | |
Description: CloudFormation Sample Aurora Parameter Group | |
Family: aurora5.6 | |
Parameters: | |
sql_mode: IGNORE_SPACE | |
max_allowed_packet: 1024 | |
innodb_buffer_pool_size: '{DBInstanceClassMemory*3/4}' | |
# Aurora instances need to be associated with a AWS::RDS::DBCluster via DBClusterIdentifier without the cluster you get these generic errors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment