Amazon Relational Database Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 8: Line 8:


  Resources:
  Resources:
  RelationalDatabase:
  Type: AWS::RDS::DBInstance
  Properties:
    DBName: !Ref: "DBName"
      AllocatedStorage:
      Ref: "DBAllocatedStorage"
    DBInstanceClass:
      Ref: "DBInstanceClass"
    Engine: "MySQL"
    EngineVersion: "5.6.13"
    MasterUsername:
      Ref: "DBUser"
    MasterUserPassword:
      Ref: "DBPassword"
    Tags:
      -
        Key: "Name"
        Value: "My SQL Database"
  DeletionPolicy: "Snapshot"

Revision as of 02:42, 17 April 2019

Internal

Create a Database Instance with CloudFormation

AWS::RDS::DBInstance

AWS::RDS::DBInstance
Resources:
  RelationalDatabase: 
  Type: AWS::RDS::DBInstance
  Properties: 
    DBName: !Ref: "DBName"
      AllocatedStorage: 
     Ref: "DBAllocatedStorage"
   DBInstanceClass: 
     Ref: "DBInstanceClass"
   Engine: "MySQL"
   EngineVersion: "5.6.13"
   MasterUsername: 
     Ref: "DBUser"
   MasterUserPassword: 
     Ref: "DBPassword"
   Tags: 
     - 
       Key: "Name"
       Value: "My SQL Database"
 DeletionPolicy: "Snapshot"