Difference between revisions of "RDS template.cf"

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 13: Line 13:
 
       [[AllocatedStorage]]: '5'
 
       [[AllocatedStorage]]: '5'
 
       DBInstanceClass: db.t2.micro
 
       DBInstanceClass: db.t2.micro
       Engine: PostgreSQL
+
       [[Engine]]: PostgreSQL
 
       MasterUsername: MyName
 
       MasterUsername: MyName
 
       MasterUserPassword: MyPassword
 
       MasterUserPassword: MyPassword
Line 21: Line 21:
 
== Related ==
 
== Related ==
 
* <code>[[AWS::RDS::DBInstance]]</code>
 
* <code>[[AWS::RDS::DBInstance]]</code>
 +
* <code>[[aws rds create-db-instance]]</code>
 +
* <code>[[Terraform resource: aws_db_instance]]</code>
 
* [[AWS RDS]]
 
* [[AWS RDS]]
  

Latest revision as of 20:27, 1 June 2022

AWSTemplateFormatVersion: '2010-09-09'
Metadata: 
  License: Apache-2.0
Description: 'AWS CloudFormation Sample Template RDS_Snapshot_On_Delete: Sample template
  showing how to create an RDS DBInstance that is snapshotted on stack deletion. **WARNING**
  This template creates an Amazon RDS database instance. When the stack is deleted
  a database snapshot will be left in your account. You will be billed for the AWS
  resources used if you create a stack from this template.'
Resources:
  MyDB:
   Type: AWS::RDS::DBInstance
   Properties:
     AllocatedStorage: '5'
     DBInstanceClass: db.t2.micro
     Engine: PostgreSQL
     MasterUsername: MyName
     MasterUserPassword: MyPassword
   DeletionPolicy: Delete 

https://github.com/awslabs/aws-cloudformation-templates/blob/master/aws/services/RDS/RDS_Snapshot_On_Delete.yaml

Related[edit]

See also[edit]

Advertising: