Amazon Relational Database Operations: Difference between revisions
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
[[AWS_CloudFormation_Concepts#DeletionPolicy|DeletionPolicy]]: Delete | [[AWS_CloudFormation_Concepts#DeletionPolicy|DeletionPolicy]]: Delete | ||
Properties: | Properties: | ||
[[Amazon Relational Database Concepts#Database_Name|DBName]]: | [[Amazon Relational Database Concepts#Database_Name|DBName]]: themyscira01 | ||
[[Amazon Relational Database Concepts#Instance_Identifier|DBInstanceIdentifier]]: | [[Amazon Relational Database Concepts#Instance_Identifier|DBInstanceIdentifier]]: !Sub ${EnvironmentName}-${MicroworldName} | ||
[[Amazon_Relational_Database_Concepts#Allocated_Storage|AllocatedStorage]]: 8 | [[Amazon_Relational_Database_Concepts#Allocated_Storage|AllocatedStorage]]: 8 | ||
[[Amazon_Relational_Database_Concepts#Instance_Class|DBInstanceClass]]: db.t2.micro | [[Amazon_Relational_Database_Concepts#Instance_Class|DBInstanceClass]]: db.t2.micro |
Revision as of 04:38, 17 April 2019
Internal
Create a Database Instance with CloudFormation
AWS::RDS::DBInstance
Resources: RelationalDatabase: Type: AWS::RDS::DBInstance DeletionPolicy: Delete Properties: DBName: themyscira01 DBInstanceIdentifier: !Sub ${EnvironmentName}-${MicroworldName} AllocatedStorage: 8 DBInstanceClass: db.t2.micro Engine: postgres EngineVersion: 9.4.20 MasterUsername: bn73hewc MasterUserPassword: ce75h9w0 Tags: - Key: Name Value: "My Postgres Database"
Return Values
Ref
Returns instance identifier (DBInstanceIdentifier).
GetAtt
- Endpoint.Address returns the connection endpoint for the database (e.g. mystack-mydb-1apw1j4phylrk.cg034hpkmmjt.us-east-2.rds.amazonaws.com)
- Endpoint.Port