Guest User

Untitled

a guest
Oct 15th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. Resources:
  2. mydbsubgrp:
  3. Type: AWS::RDS::DBSubnetGroup
  4. Properties:
  5. DBSubnetGroupDescription: mydbsubnet
  6. DBSubnetGroupName: mydbsub
  7. SubnetIds:
  8. - subnet-8ba626ec
  9. - subnet-8cb13ea2
  10. Tags:
  11. - Key: "Name"
  12. Value: "wpdb"
  13.  
  14.  
  15.  
  16. myrds:
  17. Type: AWS::RDS::DBInstance
  18. Properties:
  19. Description: rds instace for wordpress
  20. Engine: MySQL
  21. EngineVersion: 5.6.13
  22. AllocatedStorage: 100GB
  23. BackupRetentionPeriod: 7
  24. DBInstanceIdentifier: mydbinstance
  25. DBName: wordpress
  26. DBInstanceClass: t2.micro
  27. DBSubnetGroupName: !Ref mydbsubgrp
  28. MasterUsername: redhat1234
  29. MasterUserPassword: redhat1234
  30. PubliclyAccessible: true
  31.  
  32. Outputs:
  33. rdsdetails:
  34. Description: rds endpoint
  35. Value: !GetAtt myrds.Endpoint.Address
Add Comment
Please, Sign In to add comment