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

From wikieduonline
Jump to navigation Jump to search
Line 42: Line 42:
  
 
Delete | Snapshot | Retain
 
Delete | Snapshot | Retain
 +
 +
== Complete example ==
 +
<pre>
 +
Type: AWS::RDS::DBInstance
 +
Properties:
 +
  AllocatedStorage: String
 +
  AllowMajorVersionUpgrade: Boolean
 +
  AssociatedRoles:
 +
    - DBInstanceRole
 +
  AutoMinorVersionUpgrade: Boolean
 +
  AvailabilityZone: String
 +
  BackupRetentionPeriod: Integer
 +
  CACertificateIdentifier: String
 +
  CharacterSetName: String
 +
  CopyTagsToSnapshot: Boolean
 +
  DBClusterIdentifier: String
 +
  DBInstanceClass: String
 +
  DBInstanceIdentifier: String
 +
  DBName: String
 +
  DBParameterGroupName: String
 +
  DBSecurityGroups:
 +
    - String
 +
  DBSnapshotIdentifier: String
 +
  DBSubnetGroupName: String
 +
  DeleteAutomatedBackups: Boolean
 +
  DeletionProtection: Boolean
 +
  Domain: String
 +
  DomainIAMRoleName: String
 +
  EnableCloudwatchLogsExports:
 +
    - String
 +
  EnableIAMDatabaseAuthentication: Boolean
 +
  EnablePerformanceInsights: Boolean
 +
  Engine: String
 +
  EngineVersion: String
 +
  Iops: Integer
 +
  KmsKeyId: String
 +
  LicenseModel: String
 +
  MasterUsername: String
 +
  MasterUserPassword: String
 +
  MaxAllocatedStorage: Integer
 +
  MonitoringInterval: Integer
 +
  MonitoringRoleArn: String
 +
  MultiAZ: Boolean
 +
  OptionGroupName: String
 +
  PerformanceInsightsKMSKeyId: String
 +
  PerformanceInsightsRetentionPeriod: Integer
 +
  Port: String
 +
  PreferredBackupWindow: String
 +
  PreferredMaintenanceWindow: String
 +
  ProcessorFeatures:
 +
    - ProcessorFeature
 +
  PromotionTier: Integer
 +
  PubliclyAccessible: Boolean
 +
  SourceDBInstanceIdentifier: String
 +
  SourceRegion: String
 +
  StorageEncrypted: Boolean
 +
  StorageType: String
 +
  Tags:
 +
    - Tag
 +
  Timezone: String
 +
  UseDefaultProcessorFeatures: Boolean
 +
  VPCSecurityGroups:
 +
    - String
 +
</pre>
  
 
== Related terms ==
 
== Related terms ==

Revision as of 13:37, 26 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

Complete example

Type: AWS::RDS::DBInstance
Properties: 
  AllocatedStorage: String
  AllowMajorVersionUpgrade: Boolean
  AssociatedRoles: 
    - DBInstanceRole
  AutoMinorVersionUpgrade: Boolean
  AvailabilityZone: String
  BackupRetentionPeriod: Integer
  CACertificateIdentifier: String
  CharacterSetName: String
  CopyTagsToSnapshot: Boolean
  DBClusterIdentifier: String
  DBInstanceClass: String
  DBInstanceIdentifier: String
  DBName: String
  DBParameterGroupName: String
  DBSecurityGroups: 
    - String
  DBSnapshotIdentifier: String
  DBSubnetGroupName: String
  DeleteAutomatedBackups: Boolean
  DeletionProtection: Boolean
  Domain: String
  DomainIAMRoleName: String
  EnableCloudwatchLogsExports: 
    - String
  EnableIAMDatabaseAuthentication: Boolean
  EnablePerformanceInsights: Boolean
  Engine: String
  EngineVersion: String
  Iops: Integer
  KmsKeyId: String
  LicenseModel: String
  MasterUsername: String
  MasterUserPassword: String
  MaxAllocatedStorage: Integer
  MonitoringInterval: Integer
  MonitoringRoleArn: String
  MultiAZ: Boolean
  OptionGroupName: String
  PerformanceInsightsKMSKeyId: String
  PerformanceInsightsRetentionPeriod: Integer
  Port: String
  PreferredBackupWindow: String
  PreferredMaintenanceWindow: String
  ProcessorFeatures: 
    - ProcessorFeature
  PromotionTier: Integer
  PubliclyAccessible: Boolean
  SourceDBInstanceIdentifier: String
  SourceRegion: String
  StorageEncrypted: Boolean
  StorageType: String
  Tags: 
    - Tag
  Timezone: String
  UseDefaultProcessorFeatures: Boolean
  VPCSecurityGroups: 
    - String

Related terms

See also

Advertising: