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}:cluster-snapshot:${ClusterSnapshotName}
cluster-snapshot
arn:${Partition}:rds:${Region}:${Account}:db:${DbInstanceName} required
db
arn:${Partition}:rds:${Region}:${Account}:db-capacity-reservation:${DBCapacityReservationIdentifier}
db-capacity-reservation
arn:${Partition}:rds:${Region}:${Account}:og:${OptionGroupName} required
og
arn:${Partition}:rds:${Region}:${Account}:pg:${ParameterGroupName} required
pg
arn:${Partition}:rds:${Region}:${Account}:snapshot:${SnapshotName}
snapshot
arn:${Partition}:rds:${Region}:${Account}:subgrp:${SubnetGroupName} required
subgrp

Condition keys

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

aws:RequestTag/${TagKey} String

Filters access by the set of tag key-value pairs in the request

aws:TagKeys ArrayOfString

Filters access by the set of tag keys in the request

rds:BackupTarget String

Filters access by the type of backup target. One of: region, outposts

rds:ManageMasterUserPassword Bool

Filters access by the value that specifies whether RDS manages master user password in AWS Secrets Manager for the DB instance or cluster

rds:PubliclyAccessible Bool

Filters access by the value that specifies whether the DB Instance or DB ShardGroup is publicly accessible

rds:req-tag/${TagKey} String

Filters access by the set of tag keys and values that can be used to tag a resource

aws:ResourceTag/${TagKey} String

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

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

Filters access by the tag attached to a DB cluster snapshot

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: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

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 →