Guest User

Untitled

a guest
Jul 30th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. DB:
  2. Type: AWS::RDS::DBInstance
  3. Properties:
  4. DBSubnetGroupName: !Ref RDSSubnetGroup
  5.  
  6. ###########
  7. # DB Subnet Group
  8. ###########
  9.  
  10. DBSubnetGroup:
  11. Type: AWS::RDS::DBSubnetGroup
  12. Properties:
  13. DBSubnetGroupDescription: Lab DB Subnet Group
  14. DBSubnetGroupName: Lab DB Subnet Group
  15. SubnetIds:
  16. - !Ref PrivateSubnet1
  17. - !Ref PrivateSubnet2
  18. Tags:
  19. -
  20. Key: Name
  21. Value: DBSubnetGroup
  22.  
  23. ###########
  24. # RDS Database
  25. ###########
  26.  
  27. RDSDatabase:
  28. Type: AWS::RDS::DBInstance
  29. Properties:
  30. DBName: inventory
  31. DBInstanceIdentifier: inventory-db
  32. AllocatedStorage: 5
  33. DBInstanceClass: db.t2.micro
  34. Engine: MySQL
  35. MasterUsername: master
  36. MasterUserPassword: lab-password
  37. MultiAZ: false
  38. DBSubnetGroupName: !Ref DBSubnetGroup
  39. VPCSecurityGroups:
  40. - !Ref DBSecurityGroup
  41. Tags:
  42. -
  43. Key: Name
  44. Value: inventory-db
Add Comment
Please, Sign In to add comment