Difference between revisions of "AWS::RDS::DBInstance"

From wikieduonline
Jump to navigation Jump to search
Line 14: Line 14:
 
     AllocatedStorage: '5'
 
     AllocatedStorage: '5'
 
     DBInstanceClass: [[db.t2.micro]]
 
     DBInstanceClass: [[db.t2.micro]]
     Engine: [[PostgreSQL]]
+
     Engine: [[postgres]]
 
     MasterUsername: MyName
 
     MasterUsername: MyName
 
     MasterUserPassword: MyPassword
 
     MasterUserPassword: MyPassword
Line 20: Line 20:
  
 
Complete example: [[RDS_template.cf]]
 
Complete example: [[RDS_template.cf]]
 +
 +
* Engines: MySQL, postgres, ... https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html
  
  

Revision as of 10:41, 29 September 2021

Snippets

PostgreSQL AWS Free Tier: db.t2.micro and 20 GB of database storage and backup.

MyDB:
  Type: AWS::RDS::DBInstance
  Properties:
    AllocatedStorage: '5'
    DBInstanceClass: db.t2.micro
    Engine: postgres
    MasterUsername: MyName
    MasterUserPassword: MyPassword
  DeletionPolicy: Delete 

Complete example: RDS_template.cf


MyDB:
  Type: AWS::RDS::DBInstance
  Properties:
    DBSecurityGroups:
    - Ref: MyDbSecurityByEC2SecurityGroup
    - Ref: MyDbSecurityByCIDRIPGroup
    AllocatedStorage: '5'
    DBInstanceClass: db.t2.micro
    Engine: PostgreSQL
    MasterUsername: MyName
    MasterUserPassword: MyPassword
  DeletionPolicy: Delete 


Delete | Snapshot | Retain

Related terms

See also

Advertising: