Amazon Relational Database Operations: Difference between revisions
Jump to navigation
Jump to search
Line 37: | Line 37: | ||
{{External|[https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsubnet-group.html AWS::RDS::DBSubnetGroup]}} | {{External|[https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsubnet-group.html AWS::RDS::DBSubnetGroup]}} | ||
Resources: | |||
RDSubnetGroup: | |||
Type: "AWS::RDS::DBSubnetGroup" | |||
Properties: | |||
DBSubnetGroupDescription: String | |||
DBSubnetGroupName: String | |||
SubnetIds: | |||
- String | |||
Tags: | |||
- Resource Tag | |||
=Deploying a RDS Instance into a Specific VPC= | =Deploying a RDS Instance into a Specific VPC= | ||
{{Internal|Deploying a RDS Instance into a Specific VPC|Deploying a RDS Instance into a Specific VPC}} | {{Internal|Deploying a RDS Instance into a Specific VPC|Deploying a RDS Instance into a Specific VPC}} |
Revision as of 18:16, 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}-postgres AllocatedStorage: 8 DBInstanceClass: db.t2.micro Engine: postgres EngineVersion: 9.4.20 MasterUsername: bn73hewc MasterUserPassword: ce75h9w0 Tags: - Key: Name Value: !Sub ${EnvironmentName}-${MicroworldName}-postgres
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
AWS::RDS::DBSubnetGroup
Resources: RDSubnetGroup: Type: "AWS::RDS::DBSubnetGroup" Properties: DBSubnetGroupDescription: String DBSubnetGroupName: String SubnetIds: - String Tags: - Resource Tag