AWS::RDS::DBSnapshot

RDS DBSnapshot

Creates a snapshot of a DB instance.

Properties

3 configurable properties. 2 required. Click a row to see details.

Filter:
PropertyTypeFlags
DBInstanceIdentifier
string
RequiredCreate-only
DBSnapshotIdentifier
string
RequiredCreate-only
Tags
Array<Tag>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
AllocatedStorageintegerThe allocated storage size in gibibytes (GiB).
AvailabilityZonestringThe name of the Availability Zone the DB instance was located in at the time of the DB snapshot.
DbiResourceIdstringThe identifier for the source DB instance, which is unique to an AWS Region.
DBSnapshotArnstringThe Amazon Resource Name (ARN) for the DB snapshot.
EncryptedbooleanIndicates whether the DB snapshot is encrypted.
EnginestringThe name of the database engine.
EngineVersionstringThe version of the database engine.
IAMDatabaseAuthenticationEnabledbooleanIndicates whether mapping of AWS IAM accounts to database accounts is enabled.
InstanceCreateTimestringThe time when the DB instance was created, in UTC.
IopsintegerThe Provisioned IOPS value of the DB instance at the time of the snapshot.
KmsKeyIdstringIf Encrypted is true, the AWS KMS key identifier for the encrypted DB snapshot.
LicenseModelstringLicense model information for the restored DB instance.
MasterUsernamestringThe master username for the DB snapshot.
OptionGroupNamestringThe option group name for the DB snapshot.
OriginalSnapshotCreateTimestringThe time of the CreateDBSnapshot operation in UTC. Doesn't change when the snapshot is copied.
PortintegerThe port that the database engine was listening on at the time of the snapshot.
SnapshotCreateTimestringThe time when the snapshot was taken, in UTC.
SnapshotTypestringThe type of the DB snapshot.
StatusstringThe status of this DB snapshot.
StorageThroughputintegerThe storage throughput for the DB snapshot.
StorageTypestringThe storage type associated with the DB snapshot.
VpcIdstringThe VPC ID associated with the DB snapshot.

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::RDS::DBSnapshot

Resources:
  MyResource:
    Type: AWS::RDS::DBSnapshot
    Properties:
      DBSnapshotIdentifier: "my-dbsnapshotidentifier"
      DBInstanceIdentifier: "my-dbinstanceidentifier"
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

rds:CreateDBSnapshotrds:DescribeDBSnapshotsrds:DescribeDBInstancesrds:AddTagsToResourcerds:ListTagsForResource

read

rds:DescribeDBSnapshotsrds:ListTagsForResource

update

rds:DescribeDBSnapshotsrds:AddTagsToResourcerds:RemoveTagsFromResourcerds:ListTagsForResource

delete

rds:DeleteDBSnapshotrds:DescribeDBSnapshotsrds:ListTagsForResource

list

rds:DescribeDBSnapshots

Get the RDS Cheat Sheet

Everything you need to know about RDS on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceRDS
Properties25
Required2
TaggingSupported
Primary IDDBSnapshotArn

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

DBSnapshotIdentifierDBInstanceIdentifier

External Links