Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Amazon RDS (service prefix:
rds
) provides the following service-specific resources, actions, and condition context
keys for use in IAM permission policies.
References:
Learn how to configure this service .
View a list of the API operations available for this service .
Learn how to secure this service and its resources by using IAM permission policies.
Topics
You can specify the following actions in the
Action
element of an IAM policy statement. Use policies to grant permissions to perform
an operation in AWS. When you use an action in a policy, you usually allow or
deny access to the API operation or CLI command with the same name. However,
in some cases, a single action controls access to more than one operation. Alternatively,
some operations require several different actions.
The
Resource Types
column indicates whether each action supports resource-level permissions. If
there is no value for this column, you must specify all resources ("*") in the
Resource
element of your policy statement. If the column includes a resource type, then
you can specify an ARN of that type in a statement with that action. Required
resources are indicated in the table with an asterisk (*). If you specify a resource-level
permission ARN in a statement using this action, then it must be of this type.
Some actions support multiple resource types. If the resource type is optional (not
indicated as required), then you can choose to use one but not the other.
For details about the columns in the following table, see The Actions Table .
Actions | Description | Access Level | Resource Types (*required) | Condition Keys | Dependent Actions |
---|---|---|---|---|---|
AddRoleToDBCluster | Associates an Identity and Access Management (IAM) role from an Aurora DB cluster. | Write |
iam:PassRole |
||
AddRoleToDBInstance | Associates an AWS Identity and Access Management (IAM) role with a DB instance. | Write |
iam:PassRole |
||
AddSourceIdentifierToSubscription | Adds a source identifier to an existing RDS event notification subscription. | Write | |||
AddTagsToResource | Adds metadata tags to an Amazon RDS resource. | Tagging | |||
ApplyPendingMaintenanceAction | Applies a pending maintenance action to a resource. | Write | |||
AuthorizeDBSecurityGroupIngress | Enables ingress to a DBSecurityGroup using one of two forms of authorization. | Permissions management | |||
BacktrackDBCluster | Backtracks a DB cluster to a specific time, without creating a new DB cluster. | Write | |||
CopyDBClusterParameterGroup | Copies the specified DB cluster parameter group. | Write | |||
CopyDBClusterSnapshot | Creates a snapshot of a DB cluster. | Write | |||
CopyDBParameterGroup | Copies the specified DB parameter group. | Write | |||
CopyDBSnapshot | Copies the specified DB snapshot. | Write | |||
CopyOptionGroup | Copies the specified option group. | Write | |||
CreateDBCluster | Creates a new Amazon Aurora DB cluster. | Tagging |
iam:PassRole |
||
CreateDBClusterEndpoint | Creates a new custom endpoint and associates it with an Amazon Aurora DB cluster. | Write | |||
CreateDBClusterParameterGroup | Create a new DB cluster parameter group. | Tagging | |||
CreateDBClusterSnapshot | Creates a snapshot of a DB cluster. | Tagging | |||
CreateDBInstance | Creates a new DB instance. | Tagging |
iam:PassRole |
||
CreateDBInstanceReadReplica | Creates a DB instance that acts as a Read Replica of a source DB instance. | Tagging |
iam:PassRole |
||
CreateDBParameterGroup | Creates a new DB parameter group. | Tagging | |||
CreateDBProxy | Grants permission to create a database proxy | Write |
iam:PassRole |
||
CreateDBSecurityGroup | Creates a new DB security group. DB security groups control access to a DB instance. | Tagging | |||
CreateDBSnapshot | Creates a DBSnapshot. | Tagging | |||
CreateDBSubnetGroup | Creates a new DB subnet group. | Tagging | |||
CreateEventSubscription | Creates an RDS event notification subscription. | Tagging | |||
CreateGlobalCluster | Creates an Aurora global database spread across multiple regions. | Write | |||
CreateOptionGroup | Creates a new option group. | Tagging | |||
DeleteDBCluster | The DeleteDBCluster action deletes a previously provisioned DB cluster. | Write | |||
DeleteDBClusterEndpoint | Deletes a custom endpoint and removes it from an Amazon Aurora DB cluster. | Write | |||
DeleteDBClusterParameterGroup | Deletes a specified DB cluster parameter group. | Write | |||
DeleteDBClusterSnapshot | Deletes a DB cluster snapshot. | Write | |||
DeleteDBInstance | The DeleteDBInstance action deletes a previously provisioned DB instance. | Write | |||
DeleteDBInstanceAutomatedBackup | Deletes automated backups based on the source instance's DbiResourceId value or the restorable instance's resource ID. | Write | |||
DeleteDBParameterGroup | Deletes a specified DBParameterGroup. | Write | |||
DeleteDBProxy | Grants permission to delete a database proxy | Write | |||
DeleteDBSecurityGroup | Deletes a DB security group. | Write | |||
DeleteDBSnapshot | Deletes a DBSnapshot. | Write | |||
DeleteDBSubnetGroup | Deletes a DB subnet group. | Write | |||
DeleteEventSubscription | Deletes an RDS event notification subscription. | Write | |||
DeleteGlobalCluster | Deletes a global database cluster. | Write | |||
DeleteOptionGroup | Deletes an existing option group. | Write | |||
DeregisterDBProxyTargets | Grants permission to remove targets from a database proxy target group | Write | |||
DescribeAccountAttributes | Lists all of the attributes for a customer account. | List | |||
DescribeCertificates | Lists the set of CA certificates provided by Amazon RDS for this AWS account. | List | |||
DescribeDBClusterBacktracks | Returns information about backtracks for a DB cluster. | List | |||
DescribeDBClusterEndpoints | Returns information about endpoints for an Amazon Aurora DB cluster. | List | |||
DescribeDBClusterParameterGroups | Returns a list of DBClusterParameterGroup descriptions. | List | |||
DescribeDBClusterParameters | Returns the detailed parameter list for a particular DB cluster parameter group. | List | |||
DescribeDBClusterSnapshotAttributes | Returns a list of DB cluster snapshot attribute names and values for a manual DB cluster snapshot. | List | |||
DescribeDBClusterSnapshots | Returns information about DB cluster snapshots. | Read | |||
DescribeDBClusters | Returns information about provisioned Aurora DB clusters. | List | |||
DescribeDBEngineVersions | Returns a list of the available DB engines. | List | |||
DescribeDBInstanceAutomatedBackups | Returns a list of automated backups for both current and deleted instances. | List | |||
DescribeDBInstances | Returns information about provisioned RDS instances. | List | |||
DescribeDBLogFiles | Returns a list of DB log files for the DB instance. | List | |||
DescribeDBParameterGroups | Returns a list of DBParameterGroup descriptions. | List | |||
DescribeDBParameters | Returns the detailed parameter list for a particular DB parameter group. | List | |||
DescribeDBProxies | Grants permission to view proxies | List | |||
DescribeDBProxyTargetGroups | Grants permission to view database proxy target group details | List | |||
DescribeDBProxyTargets | Grants permission to view database proxy target details | List | |||
DescribeDBSecurityGroups | Returns a list of DBSecurityGroup descriptions. | List | |||
DescribeDBSnapshotAttributes | Returns a list of DB snapshot attribute names and values for a manual DB snapshot. | List | |||
DescribeDBSnapshots | Returns information about DB snapshots. | List | |||
DescribeDBSubnetGroups | Returns a list of DBSubnetGroup descriptions. | List | |||
DescribeEngineDefaultClusterParameters | Returns the default engine and system parameter information for the cluster database engine. | List | |||
DescribeEngineDefaultParameters | Returns the default engine and system parameter information for the specified database engine. | List | |||
DescribeEventCategories | Displays a list of categories for all event source types, or, if specified, for a specified source type. | List | |||
DescribeEventSubscriptions | Lists all the subscription descriptions for a customer account. | List | |||
DescribeEvents | Returns events related to DB instances, DB security groups, DB snapshots, and DB parameter groups for the past 14 days. | List | |||
DescribeGlobalClusters | Returns information about Aurora global database clusters. | List | |||
DescribeOptionGroupOptions | Describes all available options. | List | |||
DescribeOptionGroups | Describes the available option groups. | List | |||
DescribeOrderableDBInstanceOptions | Returns a list of orderable DB instance options for the specified engine. | List | |||
DescribePendingMaintenanceActions | Returns a list of resources (for example, DB instances) that have at least one pending maintenance action. | List | |||
DescribeReservedDBInstances | Returns information about reserved DB instances for this account, or about a specified reserved DB instance. | List | |||
DescribeReservedDBInstancesOfferings | Lists available reserved DB instance offerings. | List | |||
DescribeSourceRegions | Returns a list of the source AWS Regions where the current AWS Region can create a Read Replica or copy a DB snapshot from. | List | |||
DescribeValidDBInstanceModifications | Lists available modifications you can make to your DB instance | List | |||
DownloadCompleteDBLogFile | Downloads the contents of the specified database log file. | Read | |||
DownloadDBLogFilePortion | Downloads all or a portion of the specified log file, up to 1 MB in size. | Read | |||
FailoverDBCluster | Forces a failover for a DB cluster. | Write | |||
ListTagsForResource | Lists all tags on an Amazon RDS resource. | Read | |||
ModifyCurrentDBClusterCapacity | Modify current cluster capacity for an Amazon Aurora Severless DB cluster. | Write | |||
ModifyDBCluster | Modify a setting for an Amazon Aurora DB cluster. | Write |
iam:PassRole |
||
ModifyDBClusterEndpoint | Modifies the properties of an endpoint in an Amazon Aurora DB cluster. | Write | |||
ModifyDBClusterParameterGroup | Modifies the parameters of a DB cluster parameter group. | Write | |||
ModifyDBClusterSnapshotAttribute | Adds an attribute and values to, or removes an attribute and values from, a manual DB cluster snapshot. | Write | |||
ModifyDBInstance | Modify settings for a DB instance. | Write |
iam:PassRole |
||
ModifyDBParameterGroup | Modifies the parameters of a DB parameter group. | Write | |||
ModifyDBProxy | Grants permission to modify database proxy | Write |
iam:PassRole |
||
ModifyDBProxyTargetGroup | Grants permission to modify target group for a database proxy | Write | |||
ModifyDBSnapshot | Updates a manual DB snapshot, which can be encrypted or not encrypted, with a new engine version. | Write | |||
ModifyDBSnapshotAttribute | Adds an attribute and values to, or removes an attribute and values from, a manual DB snapshot. | Write | |||
ModifyDBSubnetGroup | Modifies an existing DB subnet group. | Write | |||
ModifyEventSubscription | Modifies an existing RDS event notification subscription. | Write | |||
ModifyGlobalCluster | Modify a setting for an Amazon Aurora global cluster. | Write | |||
ModifyOptionGroup | Modifies an existing option group. | Write |
iam:PassRole |
||
PromoteReadReplica | Promotes a Read Replica DB instance to a standalone DB instance. | Write | |||
PromoteReadReplicaDBCluster | Promotes a Read Replica DB cluster to a standalone DB cluster. | Write | |||
PurchaseReservedDBInstancesOffering | Purchases a reserved DB instance offering. | Write | |||
RebootDBInstance | Rebooting a DB instance restarts the database engine service. | Write | |||
RegisterDBProxyTargets | Grants permission to add targets to a database proxy target group | Write | |||
RemoveFromGlobalCluster | Detaches an Aurora secondary cluster from an Aurora global database cluster. | Write | |||
RemoveRoleFromDBCluster | Disassociates an AWS Identity and Access Management (IAM) role from an Amazon Aurora DB cluster. | Write |
iam:PassRole |
||
RemoveRoleFromDBInstance | Disassociates an AWS Identity and Access Management (IAM) role from a DB instance. | Write |
iam:PassRole |
||
RemoveSourceIdentifierFromSubscription | Removes a source identifier from an existing RDS event notification subscription. | Write | |||
RemoveTagsFromResource | Removes metadata tags from an Amazon RDS resource. | Tagging | |||
ResetDBClusterParameterGroup | Modifies the parameters of a DB cluster parameter group to the default value. | Write | |||
ResetDBParameterGroup | Modifies the parameters of a DB parameter group to the engine/system default value. | Write | |||
RestoreDBClusterFromS3 | Creates an Amazon Aurora DB cluster from data stored in an Amazon S3 bucket. | Write |
iam:PassRole |
||
RestoreDBClusterFromSnapshot | Creates a new DB cluster from a DB cluster snapshot. | Write |
iam:PassRole |
||
RestoreDBClusterToPointInTime | Restores a DB cluster to an arbitrary point in time. | Write |
iam:PassRole |
||
RestoreDBInstanceFromDBSnapshot | Creates a new DB instance from a DB snapshot. | Write |
iam:PassRole |
||
RestoreDBInstanceFromS3 | Creates a new DB instance from an Amazon S3 bucket. | Write |
iam:PassRole |
||
RestoreDBInstanceToPointInTime | Restores a DB instance to an arbitrary point in time. | Write |
iam:PassRole |
||
RevokeDBSecurityGroupIngress | Revokes ingress from a DBSecurityGroup for previously authorized IP ranges or EC2 or VPC Security Groups. | Write | |||
StartActivityStream | Enables the user to start Activity Stream. | Write | |||
StartDBCluster | Starts the DB cluster. | Write | |||
StartDBInstance | Starts the DB instance. | Write | |||
StopActivityStream | Enables the user to stop Activity Stream. | Write | |||
StopDBCluster | Stops the DB cluster. | Write | |||
StopDBInstance | Stops the DB instance. | Write |
The following resource types are defined by this service and can be used in the
Resource
element of IAM permission policy statements. Each action in the
Actions table
identifies the resource types that can be specified with that action. A resource
type can also define which condition keys you can include in a policy. These
keys are displayed in the last column of the table. For details about the columns
in the following table, see
The Resource Types Table
.
Resource Types | ARN | Condition Keys |
---|---|---|
cluster |
arn:$
{
Partition}:rds:$
{
Region}:$
{
Account}:cluster:$
{
DbClusterInstanceName}
|
|
cluster-endpoint |
arn:$
{
Partition}:rds:$
{
Region}:$
{
Account}:cluster-endpoint:$
{
DbClusterEndpoint}
|
|
cluster-pg |
arn:$
{
Partition}:rds:$
{
Region}:$
{
Account}:cluster-pg:$
{
ClusterParameterGroupName}
|
|
cluster-snapshot |
arn:$
{
Partition}:rds:$
{
Region}:$
{
Account}:cluster-snapshot:$
{
ClusterSnapshotName}
|
|
db |
arn:$
{
Partition}:rds:$
{
Region}:$
{
Account}:db:$
{
DbInstanceName}
|
|
es |
arn:$
{
Partition}:rds:$
{
Region}:$
{
Account}:es:$
{
SubscriptionName}
|
|
global-cluster |
arn:$
{
Partition}:rds:$
{
Account}:global-cluster:$
{
GlobalCluster}
|
|
og |
arn:$
{
Partition}:rds:$
{
Region}:$
{
Account}:og:$
{
OptionGroupName}
|
|
pg |
arn:$
{
Partition}:rds:$
{
Region}:$
{
Account}:pg:$
{
ParameterGroupName}
|
|
proxy |
arn:$
{
Partition}:rds:$
{
Region}:$
{
Account}:db-proxy:$
{
DbProxyId}
|
|
ri |
arn:$
{
Partition}:rds:$
{
Region}:$
{
Account}:ri:$
{
ReservedDbInstanceName}
|
|
secgrp |
arn:$
{
Partition}:rds:$
{
Region}:$
{
Account}:secgrp:$
{
SecurityGroupName}
|
|
snapshot |
arn:$
{
Partition}:rds:$
{
Region}:$
{
Account}:snapshot:$
{
SnapshotName}
|
|
subgrp |
arn:$
{
Partition}:rds:$
{
Region}:$
{
Account}:subgrp:$
{
SubnetGroupName}
|
|
target |
arn:$
{
Partition}:rds:$
{
Region}:$
{
Account}:target:$
{
TargetId}
|
|
target-group |
arn:$
{
Partition}:rds:$
{
Region}:$
{
Account}:target-group:$
{
TargetGroupId}
|
Amazon RDS defines the following condition keys that can be used in the
Condition
element of an IAM policy. You can use these keys to further refine the conditions
under which the policy statement applies. For details about the columns in the
following table, see
The Condition Keys Table
.
To view the global condition keys that are available to all services, see Available Global Condition Keys in the IAM Policy Reference .
Condition Keys | Description | Type |
---|---|---|
aws:RequestTag/$ { TagKey} | Filters actions based on the presence of tag key-value pairs in the request | String |
aws:ResourceTag/$ { TagKey} | Filters actions based on tag key-value pairs attached to the resource | String |
aws:TagKeys | Filters actions based on the presence of tag keys in the request | String |
rds:DatabaseClass | A type of DB instance class. | String |
rds:DatabaseEngine | A database engine, such as MySQL. | String |
rds:DatabaseName | The user-defined name of the database on the DB instance. | String |
rds:EndpointType | The type of the endpoint. One of: READER, WRITER, CUSTOM. | String |
rds:MultiAz | A value that specifies whether the DB instance runs in multiple Availability Zones. To indicate that the DB instance is using Multi-AZ, specify true. | Boolean |
rds:Piops | A 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. | Numeric |
rds:StorageEncrypted | A value that specifies whether the DB instance storage should be encrypted. To enforce storage encryption, specify true. | Boolean |
rds:StorageSize | The storage volume size (in GB). | Numeric |
rds:Vpc | A 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. | Boolean |
rds:cluster-pg-tag/$ { TagKey} | A tag attached to a DB cluster parameter group. | String |
rds:cluster-snapshot-tag/$ { TagKey} | A tag attached to a DB cluster snapshot. | String |
rds:cluster-tag/$ { TagKey} | A tag attached to a DB cluster. | String |
rds:db-tag/$ { TagKey} | A tag attached to a DB instance. | String |
rds:es-tag/$ { TagKey} | A tag attached to an event subscription. | String |
rds:og-tag/$ { TagKey} | A tag attached to a DB option group. | String |
rds:pg-tag/$ { TagKey} | A tag attached to a DB parameter group. | String |
rds:req-tag/$ { TagKey} | Limits the set of tag keys and values that can be used to tag a resource. | String |
rds:ri-tag/$ { TagKey} | A tag attached to a reserved DB instance. | String |
rds:secgrp-tag/$ { TagKey} | A tag attached to a DB security group. | String |
rds:snapshot-tag/$ { TagKey} | A tag attached to a DB snapshot. | String |
rds:subgrp-tag/$ { TagKey} | A tag attached to a DB subnet group. | String |