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

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
<code>[[AWS::RDS]]::DBInstance</code>
 
<code>[[AWS::RDS]]::DBInstance</code>
 
* https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html
 
* https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html
* Template [[snippets]]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-rds.html
+
* Template [[Cloudformation snippets|snippets]]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-rds.html
  
 
* [[AWS CloudFormation templates]]: https://s3.us-west-2.amazonaws.com/cloudformation-templates-us-west-2/RDS_Snapshot_On_Delete.template
 
* [[AWS CloudFormation templates]]: https://s3.us-west-2.amazonaws.com/cloudformation-templates-us-west-2/RDS_Snapshot_On_Delete.template

Revision as of 08:34, 14 April 2022

AWS::RDS::DBInstance

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: