Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DB:
- Type: AWS::RDS::DBInstance
- Properties:
- DBSubnetGroupName: !Ref RDSSubnetGroup
- ###########
- # DB Subnet Group
- ###########
- DBSubnetGroup:
- Type: AWS::RDS::DBSubnetGroup
- Properties:
- DBSubnetGroupDescription: Lab DB Subnet Group
- DBSubnetGroupName: Lab DB Subnet Group
- SubnetIds:
- - !Ref PrivateSubnet1
- - !Ref PrivateSubnet2
- Tags:
- -
- Key: Name
- Value: DBSubnetGroup
- ###########
- # RDS Database
- ###########
- RDSDatabase:
- Type: AWS::RDS::DBInstance
- Properties:
- DBName: inventory
- DBInstanceIdentifier: inventory-db
- AllocatedStorage: 5
- DBInstanceClass: db.t2.micro
- Engine: MySQL
- MasterUsername: master
- MasterUserPassword: lab-password
- MultiAZ: false
- DBSubnetGroupName: !Ref DBSubnetGroup
- VPCSecurityGroups:
- - !Ref DBSecurityGroup
- Tags:
- -
- Key: Name
- Value: inventory-db
Add Comment
Please, Sign In to add comment