Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Parameters:
pDbName:
Type: String
pDbUser:
Type: String
pDbPass:
Type: String
Description: "It should be less than 8 characters"
Resources:
SQLShackDemoDbInstance:
Type: AWS::RDS::DBInstance
Properties:
DBName: !Ref pDbName
MasterUsername: !Ref pDbUser
MasterUserPassword: !Ref pDbPass
Engine: MySQL
DBInstanceClass: db.t2.micro
StorageType: gp2
PubliclyAccessible: True
AllocatedStorage: "20"
DBInstanceIdentifier: !Join ["-", [ "SQLShackDemoDbInstance", !Ref "AWS::Region" ]]
AvailabilityZone: !Select [1, !GetAZs ""]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment