Skip to content

Instantly share code, notes, and snippets.

@aveek22
Created January 15, 2021 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save aveek22/a188b02abde65479bbba2deba5ec90d6 to your computer and use it in GitHub Desktop.
Save aveek22/a188b02abde65479bbba2deba5ec90d6 to your computer and use it in GitHub Desktop.
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