AmazonRDSCustomServiceRolePolicy
Summary
Allows Amazon RDS Custom to manage AWS resources on your behalf.
Permissions imported from the AWS Managed Policy Reference Guide; other sections pending editorial review.
Identity
- ARN
arn:aws:iam::aws:policy/aws-service-role/AmazonRDSCustomServiceRolePolicy- Default version
- v19
- Created
- Last edited
- Services
- cloudtrail, cloudwatch, ec2, events, iam, rds, secretsmanager, servicequotas, sqs, ssm
Control-plane actions (102)
By access level: 28 List, 15 Read, 6 Tagging, 53 Write.
| Service | Granted | Access levels and limits | Granted by |
|---|---|---|---|
| CloudTrail | 1 of 66 | 1 Read; 1 restricted, 0 conditional | cloudtrail:GetTrailStatus |
| CloudWatch | 5 of 160 | 1 Read, 1 Tagging, 3 Write; 5 restricted, 4 conditional | cloudwatch:DeleteAlarms, cloudwatch:DescribeAlarms, cloudwatch:EnableAlarmActions, cloudwatch:PutMetricAlarm, cloudwatch:TagResource |
| EC2 | 55 of 834 | 23 List, 1 Tagging, 31 Write; 30 restricted, 26 conditional | ec2:AllocateAddress, ec2:AssignPrivateIpAddresses, ec2:AssociateAddress, ec2:AssociateIamInstanceProfile, ec2:AttachVolume, ec2:CopyImage, ec2:CopySnapshot, ec2:CreateKeyPair, ec2:CreateNetworkInterface, ec2:CreateSnapshot, ec2:CreateSnapshots, ec2:CreateTags and 43 more |
| EventBridge | 9 of 71 | 1 List, 1 Read, 1 Tagging, 6 Write; 9 restricted, 7 conditional | events:DeleteRule, events:DescribeRule, events:DisableRule, events:EnableRule, events:ListTargetsByRule, events:PutRule, events:PutTargets, events:RemoveTargets, events:TagResource |
| IAM | 9 of 190 | 3 List, 5 Read, 1 Write; 1 restricted, 1 conditional | iam:GetInstanceProfile, iam:GetPolicy, iam:GetPolicyVersion, iam:GetRole, iam:GetRolePolicy, iam:ListAttachedRolePolicies, iam:ListInstanceProfiles, iam:ListRolePolicies, iam:PassRole |
| RDS | 1 of 173 | 1 Write; 0 restricted, 0 conditional | rds:CrossRegionCommunication |
| Secrets Manager | 7 of 27 | 1 List, 1 Read, 1 Tagging, 4 Write; 7 restricted, 7 conditional | secretsmanager:CreateSecret, secretsmanager:DeleteSecret, secretsmanager:DescribeSecret, secretsmanager:ListSecrets, secretsmanager:PutSecretValue, secretsmanager:RestoreSecret, secretsmanager:TagResource |
| Service Quotas | 1 of 26 | 1 Read; 0 restricted, 0 conditional | servicequotas:GetServiceQuota |
| SQS | 7 of 20 | 2 Read, 1 Tagging, 4 Write; 7 restricted, 7 conditional | sqs:CreateQueue, sqs:DeleteMessage, sqs:DeleteQueue, sqs:GetQueueAttributes, sqs:ReceiveMessage, sqs:SendMessage, sqs:TagQueue |
| Systems Manager | 7 of 164 | 3 Read, 1 Tagging, 3 Write; 4 restricted, 3 conditional | ssm:AddTagsToResource, ssm:DeleteParameter, ssm:DescribeInstanceInformation, ssm:GetCommandInvocation, ssm:GetConnectionStatus, ssm:PutParameter, ssm:SendCommand |
CloudTrail: 1 actions
- cloudtrail:GetTrailStatus (Read)
CloudWatch: 5 actions
- cloudwatch:DeleteAlarms (Write)
- cloudwatch:DescribeAlarms (Read)
- cloudwatch:EnableAlarmActions (Write)
- cloudwatch:PutMetricAlarm (Write)
- cloudwatch:TagResource (Tagging)
EC2: 55 actions
- ec2:AllocateAddress (Write)
- ec2:AssignPrivateIpAddresses (Write)
- ec2:AssociateAddress (Write)
- ec2:AssociateIamInstanceProfile (Write)
- ec2:AttachVolume (Write)
- ec2:CopyImage (Write)
- ec2:CopySnapshot (Write)
- ec2:CreateKeyPair (Write)
- ec2:CreateNetworkInterface (Write)
- ec2:CreateSnapshot (Write)
- ec2:CreateSnapshots (Write)
- ec2:CreateTags (Tagging)
- ec2:CreateVolume (Write)
- ec2:DeleteKeyPair (Write)
- ec2:DeleteNetworkInterface (Write)
- ec2:DeleteSnapshot (Write)
- ec2:DeleteVolume (Write)
- ec2:DeregisterImage (Write)
- ec2:DescribeIamInstanceProfileAssociations (List)
- ec2:DescribeImages (List)
- ec2:DescribeInstanceAttribute (List)
- ec2:DescribeInstanceStatus (List)
- ec2:DescribeInstanceTypes (List)
- ec2:DescribeInstances (List)
- ec2:DescribeNetworkInterfaces (List)
- ec2:DescribePlacementGroups (List)
- ec2:DescribeRegions (List)
- ec2:DescribeRouteTables (List)
- ec2:DescribeSecurityGroups (List)
- ec2:DescribeSnapshots (List)
- ec2:DescribeSubnets (List)
- ec2:DescribeTags (List)
- ec2:DescribeTransitGatewayMulticastDomains (List)
- ec2:DescribeTransitGatewayVpcAttachments (List)
- ec2:DescribeTransitGateways (List)
- ec2:DescribeVolumes (List)
- ec2:DescribeVolumesModifications (List)
- ec2:DescribeVpcAttribute (List)
- ec2:DescribeVpcs (List)
- ec2:DetachVolume (Write)
- ec2:DisassociateAddress (Write)
- ec2:DisassociateIamInstanceProfile (Write)
- ec2:GetTransitGatewayMulticastDomainAssociations (List)
- ec2:ModifyInstanceAttribute (Write)
- ec2:ModifyVolume (Write)
- ec2:ModifyVolumeAttribute (Write)
- ec2:RebootInstances (Write)
- ec2:RegisterImage (Write)
- ec2:ReleaseAddress (Write)
- ec2:ReplaceIamInstanceProfileAssociation (Write)
- ec2:RunInstances (Write)
- ec2:SearchTransitGatewayMulticastGroups (List)
- ec2:StartInstances (Write)
- ec2:StopInstances (Write)
- ec2:TerminateInstances (Write)
EventBridge: 9 actions
- events:DeleteRule (Write)
- events:DescribeRule (Read)
- events:DisableRule (Write)
- events:EnableRule (Write)
- events:ListTargetsByRule (List)
- events:PutRule (Write)
- events:PutTargets (Write)
- events:RemoveTargets (Write)
- events:TagResource (Tagging)
IAM: 9 actions
- iam:GetInstanceProfile (Read)
- iam:GetPolicy (Read)
- iam:GetPolicyVersion (Read)
- iam:GetRole (Read)
- iam:GetRolePolicy (Read)
- iam:ListAttachedRolePolicies (List)
- iam:ListInstanceProfiles (List)
- iam:ListRolePolicies (List)
- iam:PassRole (Write)
RDS: 1 actions
- rds:CrossRegionCommunication (Write)
Secrets Manager: 7 actions
- secretsmanager:CreateSecret (Write)
- secretsmanager:DeleteSecret (Write)
- secretsmanager:DescribeSecret (Read)
- secretsmanager:ListSecrets (List)
- secretsmanager:PutSecretValue (Write)
- secretsmanager:RestoreSecret (Write)
- secretsmanager:TagResource (Tagging)
Service Quotas: 1 actions
- servicequotas:GetServiceQuota (Read)
SQS: 7 actions
- sqs:CreateQueue (Write)
- sqs:DeleteMessage (Write)
- sqs:DeleteQueue (Write)
- sqs:GetQueueAttributes (Read)
- sqs:ReceiveMessage (Read)
- sqs:SendMessage (Write)
- sqs:TagQueue (Tagging)
Systems Manager: 7 actions
- ssm:AddTagsToResource (Tagging)
- ssm:DeleteParameter (Write)
- ssm:DescribeInstanceInformation (Read)
- ssm:GetCommandInvocation (Read)
- ssm:GetConnectionStatus (Read)
- ssm:PutParameter (Write)
- ssm:SendCommand (Write)
Data-plane actions (0)
By access level: none.
This policy grants no actions in this plane.
Excluded and conditional actions
ec2:RunInstances(deny-conditional, statement 10): 1 matching actions
Resource scope and attachment
Resource scope across granted actions: mixed.
Can be attached: No (service-linked role policy).
Why this tier
- Grants 59 write, tagging or permissions-management actions, short of full control of any service.
- Grants iam:PassRole, but only for scoped roles or under conditions (for example iam:PassedToService).
- 1 granted write or permissions-management action has no data-plane classification from AWS, so the data-plane rule cannot assess it.
Guidance
Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.
Related policies
Same service
- AdministratorAccess-AWSElasticBeanstalk
- AIDevOpsReleaseManagementVPCPolicy
- AmazonAppStreamServiceAccess
- AmazonBioDiscoveryServiceLinkedRolePolicy
- AmazonDataZoneEnvironmentRolePermissionsBoundary
- AmazonDataZoneProjectDeploymentPermissionsBoundary
- AmazonDataZoneProjectRolePermissionsBoundary
- AmazonDataZoneSageMakerProvisioningRolePolicy
Same domain
Frequently asked questions
Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.
Policy JSON
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "rdscrc",
"Effect": "Allow",
"Action": [
"rds:CrossRegionCommunication"
],
"Resource": "*"
},
{
"Sid": "ecc1",
"Effect": "Allow",
"Action": [
"ec2:DescribeInstances",
"ec2:DescribeInstanceAttribute",
"ec2:DescribeRegions",
"ec2:DescribeSnapshots",
"ec2:DescribeNetworkInterfaces",
"ec2:DescribeVolumes",
"ec2:DescribeInstanceStatus",
"ec2:DescribeInstanceTypes",
"ec2:DescribeIamInstanceProfileAssociations",
"ec2:DescribeImages",
"ec2:DescribeVpcs",
"ec2:RegisterImage",
"ec2:DeregisterImage",
"ec2:DescribeTags",
"ec2:DescribeSecurityGroups",
"ec2:DescribeVolumesModifications",
"ec2:DescribeSubnets",
"ec2:DescribeVpcAttribute",
"ec2:SearchTransitGatewayMulticastGroups",
"ec2:GetTransitGatewayMulticastDomainAssociations",
"ec2:DescribeTransitGatewayMulticastDomains",
"ec2:DescribeTransitGateways",
"ec2:DescribeTransitGatewayVpcAttachments",
"ec2:DescribePlacementGroups",
"ec2:DescribeRouteTables"
],
"Resource": [
"*"
]
},
{
"Sid": "ecc2",
"Effect": "Allow",
"Action": [
"ec2:DisassociateIamInstanceProfile",
"ec2:AssociateIamInstanceProfile",
"ec2:ReplaceIamInstanceProfileAssociation",
"ec2:TerminateInstances",
"ec2:StartInstances",
"ec2:StopInstances",
"ec2:RebootInstances"
],
"Resource": "arn:aws:ec2:*:*:instance/*",
"Condition": {
"StringLike": {
"aws:ResourceTag/AWSRDSCustom": [
"custom-oracle",
"custom-sqlserver",
"custom-oracle-rac"
]
}
}
},
{
"Sid": "ecc1scoping",
"Effect": "Allow",
"Action": [
"ec2:AllocateAddress"
],
"Resource": [
"*"
],
"Condition": {
"StringLike": {
"aws:RequestTag/AWSRDSCustom": [
"custom-oracle",
"custom-sqlserver",
"custom-oracle-rac"
]
}
}
},
{
"Sid": "ecc1scoping2",
"Effect": "Allow",
"Action": [
"ec2:AssociateAddress",
"ec2:DisassociateAddress",
"ec2:ReleaseAddress"
],
"Resource": [
"*"
],
"Condition": {
"StringLike": {
"aws:ResourceTag/AWSRDSCustom": [
"custom-oracle",
"custom-sqlserver",
"custom-oracle-rac"
]
}
}
},
{
"Sid": "ecc1scoping3",
"Effect": "Allow",
"Action": [
"ec2:AssignPrivateIpAddresses"
],
"Resource": "arn:aws:ec2:*:*:network-interface/*",
"Condition": {
"StringLike": {
"aws:ResourceTag/AWSRDSCustom": [
"custom-oracle-rac"
]
}
}
},
{
"Sid": "eccRunInstances1",
"Effect": "Allow",
"Action": "ec2:RunInstances",
"Resource": [
"arn:aws:ec2:*:*:instance/*",
"arn:aws:ec2:*:*:volume/*",
"arn:aws:ec2:*:*:network-interface/*"
],
"Condition": {
"StringLike": {
"aws:RequestTag/AWSRDSCustom": [
"custom-oracle",
"custom-sqlserver",
"custom-oracle-rac"
]
}
}
},
{
"Sid": "eccRunInstances2",
"Effect": "Allow",
"Action": [
"ec2:RunInstances"
],
"Resource": [
"arn:aws:ec2:*:*:subnet/*",
"arn:aws:ec2:*:*:security-group/*",
"arn:aws:ec2:*::image/*",
"arn:aws:ec2:*:*:key-pair/do-not-delete-rds-custom-*",
"arn:aws:ec2:*:*:placement-group/*"
]
},
{
"Sid": "eccRunInstances3",
"Effect": "Allow",
"Action": [
"ec2:RunInstances"
],
"Resource": [
"arn:aws:ec2:*:*:network-interface/*",
"arn:aws:ec2:*::snapshot/*"
],
"Condition": {
"StringLike": {
"aws:ResourceTag/AWSRDSCustom": [
"custom-oracle-rac",
"custom-oracle"
]
}
}
},
{
"Sid": "eccModifyInstanceAttribute1",
"Effect": "Allow",
"Action": [
"ec2:ModifyInstanceAttribute"
],
"Resource": [
"arn:aws:ec2:*:*:instance/*"
],
"Condition": {
"StringEquals": {
"aws:ResourceTag/AWSRDSCustom": [
"custom-sqlserver"
],
"ec2:Attribute": "InstanceType"
}
}
},
{
"Sid": "RequireImdsV2",
"Effect": "Deny",
"Action": "ec2:RunInstances",
"Resource": "arn:aws:ec2:*:*:instance/*",
"Condition": {
"StringNotEquals": {
"ec2:MetadataHttpTokens": "required"
},
"StringLike": {
"aws:RequestTag/AWSRDSCustom": [
"custom-oracle-rac"
]
}
}
},
{
"Sid": "eccRunInstances3keyPair1",
"Effect": "Allow",
"Action": [
"ec2:RunInstances",
"ec2:DeleteKeyPair"
],
"Resource": [
"arn:aws:ec2:*:*:key-pair/do-not-delete-rds-custom-*",
"arn:aws:ec2:*:*:key-pair/rds-custom!*"
],
"Condition": {
"StringLike": {
"aws:ResourceTag/AWSRDSCustom": [
"custom-oracle",
"custom-sqlserver",
"custom-oracle-rac"
]
}
}
},
{
"Sid": "eccKeyPair2",
"Effect": "Allow",
"Action": [
"ec2:CreateKeyPair"
],
"Resource": [
"arn:aws:ec2:*:*:key-pair/do-not-delete-rds-custom-*",
"arn:aws:ec2:*:*:key-pair/rds-custom!*"
],
"Condition": {
"StringLike": {
"aws:RequestTag/AWSRDSCustom": [
"custom-oracle",
"custom-sqlserver",
"custom-oracle-rac"
]
}
}
},
{
"Sid": "eccNetworkInterface1",
"Effect": "Allow",
"Action": "ec2:CreateNetworkInterface",
"Resource": "arn:aws:ec2:*:*:network-interface/*",
"Condition": {
"StringLike": {
"aws:RequestTag/AWSRDSCustom": [
"custom-oracle-rac"
]
}
}
},
{
"Sid": "eccNetworkInterface2",
"Effect": "Allow",
"Action": "ec2:CreateNetworkInterface",
"Resource": [
"arn:aws:ec2:*:*:subnet/*",
"arn:aws:ec2:*:*:security-group/*"
]
},
{
"Sid": "eccNetworkInterface3",
"Effect": "Allow",
"Action": "ec2:DeleteNetworkInterface",
"Resource": "arn:aws:ec2:*:*:network-interface/*",
"Condition": {
"StringLike": {
"aws:ResourceTag/AWSRDSCustom": [
"custom-oracle-rac"
]
}
}
},
{
"Sid": "eccCreateTag1",
"Effect": "Allow",
"Action": [
"ec2:CreateTags"
],
"Resource": [
"*"
],
"Condition": {
"StringLike": {
"aws:ResourceTag/AWSRDSCustom": [
"custom-oracle",
"custom-sqlserver",
"custom-oracle-rac"
]
}
}
},
{
"Sid": "eccCreateTag2",
"Effect": "Allow",
"Action": "ec2:CreateTags",
"Resource": "*",
"Condition": {
"StringLike": {
"aws:RequestTag/AWSRDSCustom": [
"custom-oracle",
"custom-sqlserver",
"custom-oracle-rac"
],
"ec2:CreateAction": [
"CreateKeyPair",
"RunInstances",
"CreateNetworkInterface",
"CreateVolume",
"CreateSnapshot",
"CreateSnapshots",
"CopySnapshot",
"AllocateAddress",
"CopyImage"
]
}
}
},
{
"Sid": "eccVolume1",
"Effect": "Allow",
"Action": [
"ec2:DetachVolume",
"ec2:AttachVolume"
],
"Resource": [
"arn:aws:ec2:*:*:instance/*",
"arn:aws:ec2:*:*:volume/*"
],
"Condition": {
"StringLike": {
"aws:ResourceTag/AWSRDSCustom": [
"custom-oracle",
"custom-sqlserver",
"custom-oracle-rac"
]
}
}
},
{
"Sid": "eccVolume2",
"Effect": "Allow",
"Action": "ec2:CreateVolume",
"Resource": "arn:aws:ec2:*:*:volume/*",
"Condition": {
"StringLike": {
"aws:RequestTag/AWSRDSCustom": [
"custom-oracle",
"custom-sqlserver",
"custom-oracle-rac"
]
}
}
},
{
"Sid": "eccVolume3",
"Effect": "Allow",
"Action": [
"ec2:ModifyVolumeAttribute",
"ec2:DeleteVolume",
"ec2:ModifyVolume"
],
"Resource": "arn:aws:ec2:*:*:volume/*",
"Condition": {
"StringLike": {
"aws:ResourceTag/AWSRDSCustom": [
"custom-oracle",
"custom-sqlserver",
"custom-oracle-rac"
]
}
}
},
{
"Sid": "eccVolume4snapshot1",
"Effect": "Allow",
"Action": [
"ec2:CreateVolume",
"ec2:DeleteSnapshot"
],
"Resource": "arn:aws:ec2:*::snapshot/*",
"Condition": {
"StringLike": {
"aws:ResourceTag/AWSRDSCustom": [
"custom-oracle",
"custom-sqlserver",
"custom-oracle-rac"
]
}
}
},
{
"Sid": "eccSnapshot2",
"Effect": "Allow",
"Action": [
"ec2:CreateSnapshot",
"ec2:CreateSnapshots"
],
"Resource": "arn:aws:ec2:*::snapshot/*",
"Condition": {
"StringLike": {
"aws:RequestTag/AWSRDSCustom": [
"custom-oracle",
"custom-sqlserver",
"custom-oracle-rac"
]
}
}
},
{
"Sid": "eccSnapshot3",
"Effect": "Allow",
"Action": "ec2:CreateSnapshots",
"Resource": [
"arn:aws:ec2:*:*:instance/*",
"arn:aws:ec2:*:*:volume/*"
],
"Condition": {
"StringLike": {
"aws:ResourceTag/AWSRDSCustom": [
"custom-oracle",
"custom-sqlserver",
"custom-oracle-rac"
]
}
}
},
{
"Sid": "eccSnapshot4",
"Effect": "Allow",
"Action": "ec2:CreateSnapshot",
"Resource": [
"arn:aws:ec2:*:*:volume/*"
],
"Condition": {
"StringLike": {
"aws:ResourceTag/AWSRDSCustom": [
"custom-sqlserver"
]
}
}
},
{
"Sid": "eccSnapshotCopySource",
"Effect": "Allow",
"Action": [
"ec2:CopySnapshot"
],
"Resource": "arn:aws:ec2:*::snapshot/snap-*"
},
{
"Sid": "eccSnapshotCopyDestination",
"Effect": "Allow",
"Action": [
"ec2:CopySnapshot"
],
"Resource": [
"arn:aws:ec2:*::snapshot/${*}"
],
"Condition": {
"StringEquals": {
"aws:RequestTag/AWSRDSCustom": [
"custom-oracle",
"custom-sqlserver",
"custom-oracle-rac"
]
}
}
},
{
"Sid": "eccAmi1",
"Effect": "Allow",
"Action": [
"ec2:CopyImage"
],
"Resource": [
"arn:aws:ec2:*::image/*",
"arn:aws:ec2:*::snapshot/*"
]
},
{
"Sid": "iam1",
"Effect": "Allow",
"Action": [
"iam:ListInstanceProfiles",
"iam:GetInstanceProfile",
"iam:GetRole",
"iam:ListRolePolicies",
"iam:GetRolePolicy",
"iam:ListAttachedRolePolicies",
"iam:GetPolicy",
"iam:GetPolicyVersion"
],
"Resource": "*"
},
{
"Sid": "iam2",
"Effect": "Allow",
"Action": "iam:PassRole",
"Resource": [
"arn:aws:iam::*:role/AWSRDSCustom*",
"arn:aws:iam::*:role/service-role/AWSRDSCustom*"
],
"Condition": {
"StringLike": {
"iam:PassedToService": "ec2.amazonaws.com"
}
}
},
{
"Sid": "cloudtrail1",
"Effect": "Allow",
"Action": [
"cloudtrail:GetTrailStatus"
],
"Resource": "arn:aws:cloudtrail:*:*:trail/do-not-delete-rds-custom-*"
},
{
"Sid": "cw1",
"Effect": "Allow",
"Action": [
"cloudwatch:EnableAlarmActions",
"cloudwatch:DeleteAlarms"
],
"Resource": "arn:aws:cloudwatch:*:*:alarm:do-not-delete-rds-custom-*",
"Condition": {
"StringLike": {
"aws:ResourceTag/AWSRDSCustom": [
"custom-oracle",
"custom-sqlserver",
"custom-oracle-rac"
]
}
}
},
{
"Sid": "cw2",
"Effect": "Allow",
"Action": [
"cloudwatch:PutMetricAlarm",
"cloudwatch:TagResource"
],
"Resource": "arn:aws:cloudwatch:*:*:alarm:do-not-delete-rds-custom-*",
"Condition": {
"StringLike": {
"aws:RequestTag/AWSRDSCustom": [
"custom-oracle",
"custom-sqlserver",
"custom-oracle-rac"
]
}
}
},
{
"Sid": "cw3",
"Effect": "Allow",
"Action": [
"cloudwatch:DescribeAlarms"
],
"Resource": "arn:aws:cloudwatch:*:*:alarm:*"
},
{
"Sid": "ssm1",
"Effect": "Allow",
"Action": "ssm:SendCommand",
"Resource": "arn:aws:ssm:*:*:document/*"
},
{
"Sid": "ssm2",
"Effect": "Allow",
"Action": "ssm:SendCommand",
"Resource": "arn:aws:ec2:*:*:instance/*",
"Condition": {
"StringLike": {
"aws:ResourceTag/AWSRDSCustom": [
"custom-oracle",
"custom-sqlserver",
"custom-oracle-rac"
]
}
}
},
{
"Sid": "ssm3",
"Effect": "Allow",
"Action": [
"ssm:GetCommandInvocation",
"ssm:GetConnectionStatus",
"ssm:DescribeInstanceInformation"
],
"Resource": "*"
},
{
"Sid": "ssm4",
"Effect": "Allow",
"Action": [
"ssm:PutParameter",
"ssm:AddTagsToResource"
],
"Resource": "arn:aws:ssm:*:*:parameter/rds/custom-oracle-rac/*",
"Condition": {
"StringLike": {
"aws:RequestTag/AWSRDSCustom": [
"custom-oracle-rac"
]
}
}
},
{
"Sid": "ssm5",
"Effect": "Allow",
"Action": [
"ssm:DeleteParameter"
],
"Resource": "arn:aws:ssm:*:*:parameter/rds/custom-oracle-rac/*",
"Condition": {
"StringLike": {
"aws:ResourceTag/AWSRDSCustom": [
"custom-oracle-rac"
]
}
}
},
{
"Sid": "eb1",
"Effect": "Allow",
"Action": [
"events:PutRule",
"events:TagResource"
],
"Resource": "arn:aws:events:*:*:rule/do-not-delete-rds-custom-*",
"Condition": {
"StringLike": {
"aws:RequestTag/AWSRDSCustom": [
"custom-oracle",
"custom-sqlserver",
"custom-oracle-rac"
]
}
}
},
{
"Sid": "eb2",
"Effect": "Allow",
"Action": [
"events:PutTargets",
"events:DescribeRule",
"events:EnableRule",
"events:ListTargetsByRule",
"events:DeleteRule",
"events:RemoveTargets",
"events:DisableRule"
],
"Resource": "arn:aws:events:*:*:rule/do-not-delete-rds-custom-*",
"Condition": {
"StringLike": {
"aws:ResourceTag/AWSRDSCustom": [
"custom-oracle",
"custom-sqlserver",
"custom-oracle-rac"
]
}
}
},
{
"Sid": "eb3",
"Effect": "Allow",
"Action": [
"events:PutRule"
],
"Resource": "arn:aws:events:*:*:rule/do-not-delete-rds-custom-*",
"Condition": {
"StringLike": {
"events:ManagedBy": [
"custom.rds.amazonaws.com"
]
}
}
},
{
"Sid": "eb4",
"Effect": "Allow",
"Action": [
"events:PutTargets",
"events:EnableRule",
"events:DeleteRule",
"events:RemoveTargets",
"events:DisableRule"
],
"Resource": "arn:aws:events:*:*:rule/do-not-delete-rds-custom-*",
"Condition": {
"StringLike": {
"events:ManagedBy": [
"custom.rds.amazonaws.com"
]
}
}
},
{
"Sid": "eb5",
"Effect": "Allow",
"Action": [
"events:DescribeRule",
"events:ListTargetsByRule"
],
"Resource": "arn:aws:events:*:*:rule/do-not-delete-rds-custom-*"
},
{
"Sid": "secretmanager1",
"Effect": "Allow",
"Action": [
"secretsmanager:TagResource",
"secretsmanager:CreateSecret"
],
"Resource": [
"arn:aws:secretsmanager:*:*:secret:do-not-delete-rds-custom-*",
"arn:aws:secretsmanager:*:*:secret:rds-custom!*"
],
"Condition": {
"StringLike": {
"aws:RequestTag/AWSRDSCustom": [
"custom-oracle",
"custom-sqlserver",
"custom-oracle-rac"
]
}
}
},
{
"Sid": "secretmanager2",
"Effect": "Allow",
"Action": [
"secretsmanager:TagResource",
"secretsmanager:DescribeSecret",
"secretsmanager:DeleteSecret",
"secretsmanager:PutSecretValue",
"secretsmanager:RestoreSecret"
],
"Resource": [
"arn:aws:secretsmanager:*:*:secret:do-not-delete-rds-custom-*",
"arn:aws:secretsmanager:*:*:secret:rds-custom!*"
],
"Condition": {
"StringLike": {
"aws:ResourceTag/AWSRDSCustom": [
"custom-oracle",
"custom-sqlserver",
"custom-oracle-rac"
]
}
}
},
{
"Sid": "secretmanager3",
"Effect": "Allow",
"Action": [
"secretsmanager:ListSecrets"
],
"Resource": [
"*"
],
"Condition": {
"StringEquals": {
"aws:ResourceAccount": "${aws:PrincipalAccount}"
}
}
},
{
"Sid": "sqs1",
"Effect": "Allow",
"Action": [
"sqs:CreateQueue",
"sqs:TagQueue"
],
"Resource": "arn:aws:sqs:*:*:do-not-delete-rds-custom-*",
"Condition": {
"StringLike": {
"aws:RequestTag/AWSRDSCustom": [
"custom-sqlserver",
"custom-oracle"
]
}
}
},
{
"Sid": "sqs2",
"Effect": "Allow",
"Action": [
"sqs:GetQueueAttributes",
"sqs:SendMessage",
"sqs:ReceiveMessage",
"sqs:DeleteMessage",
"sqs:DeleteQueue"
],
"Resource": "arn:aws:sqs:*:*:do-not-delete-rds-custom-*",
"Condition": {
"StringLike": {
"aws:ResourceTag/AWSRDSCustom": [
"custom-sqlserver",
"custom-oracle"
]
}
}
},
{
"Sid": "servicequota1",
"Effect": "Allow",
"Action": [
"servicequotas:GetServiceQuota"
],
"Resource": "*"
}
]
}
Version history
Current version v19, edited by AWS on 2026-02-12. Version history is recorded from 2026-11-11. Earlier versions are in the IAM console under Policy versions.
Attach snippets
This policy cannot be attached to users, groups or roles, so there are no attach snippets.
Sources
Pending editorial review. No editorial sources are listed yet.