rds:RestoreDBInstanceFromDBSnapshot

Write

rds:RestoreDBInstanceFromDBSnapshot is a Write access-level action in the rds service. Grants permission to create a new DB instance from a DB snapshot

Resource types

ARNs that rds:RestoreDBInstanceFromDBSnapshot can be scoped to in an IAM policy.

arn:${Partition}:rds:${Region}:${Account}:db:${DbInstanceName}
db
arn:${Partition}:rds:${Region}:${Account}:og:${OptionGroupName}
og
arn:${Partition}:rds:${Region}:${Account}:pg:${ParameterGroupName}
pg
arn:${Partition}:rds:${Region}:${Account}:subgrp:${SubnetGroupName}
subgrp
arn:${Partition}:rds:${Region}:${Account}:cluster-snapshot:${ClusterSnapshotName}
cluster-snapshot
arn:${Partition}:rds:${Region}:${Account}:snapshot:${SnapshotName}
snapshot

Condition keys

Keys you can use in the Condition block of a policy that grants rds:RestoreDBInstanceFromDBSnapshot.

aws:ResourceTag/${TagKey} String

Filters access by the set of tag key-value pairs attached to the resource

rds:DatabaseClass String

Filters access by the type of DB instance class

rds:DatabaseEngine String

Filters access by the database engine. For possible values refer to the engine parameter in CreateDBInstance API

rds:DatabaseName String

Filters access by the user-defined name of the database on the DB instance

rds:MultiAz Bool

Filters access by the value that specifies whether the DB instance runs in multiple Availability Zones. To indicate that the DB instance is using Multi-AZ, specify true

rds:Piops Numeric

Filters access by the value that contains the number of Provisioned IOPS (PIOPS) that the instance supports. To indicate a DB instance that does not have PIOPS enabled, specify 0

rds:StorageEncrypted Bool

Filters access by the value that specifies whether the DB instance storage should be encrypted. To enforce storage encryption, specify true

rds:StorageSize Numeric

Filters access by the storage volume size (in GB)

rds:Vpc Bool

Filters access by the value that specifies whether the DB instance runs in an Amazon Virtual Private Cloud (Amazon VPC). To indicate that the DB instance runs in an Amazon VPC, specify true

rds:cluster-snapshot-tag/${TagKey} String

Filters access by the tag attached to a DB cluster snapshot

rds:db-tag/${TagKey} String

Filters access by the tag attached to a DB instance

rds:og-tag/${TagKey} String

Filters access by the tag attached to a DB option group

rds:pg-tag/${TagKey} String

Filters access by the tag attached to a DB parameter group

rds:snapshot-tag/${TagKey} String

Filters access by the tag attached to a DB snapshot

rds:subgrp-tag/${TagKey} String

Filters access by the tag attached to a DB subnet group

Dependent actions

To use rds:RestoreDBInstanceFromDBSnapshot you may also need to grant:

Example IAM policy

A minimal policy that allows rds:RestoreDBInstanceFromDBSnapshot. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowRdsRestoreDBInstanceFromDBSnapshot",
      "Effect": "Allow",
      "Action": "rds:RestoreDBInstanceFromDBSnapshot",
      "Resource": "*"
    }
  ]
}

Related actions in rds

View all rds actions →