Amazon Relational Database Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 12: Line 12:
   Properties:  
   Properties:  
     [[Amazon Relational Database Concepts#Database_Name|DBName]]: some-name
     [[Amazon Relational Database Concepts#Database_Name|DBName]]: some-name
     [[Amazon Relational Database Concepts#Instance_Identifier|DBInstanceIdentifier]]: some-name
     [[Amazon Relational Database Concepts#Instance_Identifier|DBInstanceIdentifier]]: some-id
     [[Amazon_Relational_Database_Concepts#Allocated_Storage|AllocatedStorage]]: 8
     [[Amazon_Relational_Database_Concepts#Allocated_Storage|AllocatedStorage]]: 8
     [[Amazon_Relational_Database_Concepts#Instance_Class|DBInstanceClass]]: db.m1.medium
     [[Amazon_Relational_Database_Concepts#Instance_Class|DBInstanceClass]]: db.m1.medium

Revision as of 03:28, 17 April 2019

Internal

Create a Database Instance with CloudFormation

AWS::RDS::DBInstance

AWS::RDS::DBInstance
Resources:
  RelationalDatabase: 
  Type: AWS::RDS::DBInstance
  Properties: 
    DBName: some-name
    DBInstanceIdentifier: some-id
    AllocatedStorage: 8
    DBInstanceClass: db.m1.medium
    Engine: postgres
    EngineVersion: 9.4.20
    MasterUsername: admin
    MasterUserPassword: ...
    DeletionPolicy: Delete
    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