Guest User

Untitled

a guest
Nov 18th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. db_Subnet_group = stack.add_resource(DBSubnetGroup(
  2. 'DbSubnetGroup',
  3. DBSubnetGroupDescription='Subnet group for an internal DB',
  4. SubnetIds=[Ref(db_subnet1), Ref(db_subnet2)]
  5. ))
  6.  
  7. db_instance = stack.add_resource(DBInstance(
  8. 'DbInstance',
  9. AllocatedStorage=10,
  10. DBInstanceClass='db.t2.micro',
  11. DBSubnetGroupName=Ref(db_Subnet_group),
  12. DBName='gnt',
  13. Engine='postgres',
  14. MasterUsername='postgres',
  15. MasterUserPassword='postgres',
  16. MultiAZ=True,
  17. VPCSecurityGroups=[Ref(db_instance_security_group)]
  18. ))
Add Comment
Please, Sign In to add comment