Skip to main content
IAM Policy Map

AmazonRDSCustomPreviewServiceRolePolicy

OperatorService-linked roleActivePermissions reviewedShow on mapCompare

Summary

Amazon RDS Custom Preview Service Role Policy

Permissions imported from the AWS Managed Policy Reference Guide; other sections pending editorial review.

Identity

ARN
arn:aws:iam::aws:policy/aws-service-role/AmazonRDSCustomPreviewServiceRolePolicy
Default version
v15
Created
Last edited
Services
cloudtrail, cloudwatch, ec2, events, iam, secretsmanager, servicequotas, sqs, ssm

Control-plane actions (97)

By access level: 27 List, 15 Read, 6 Tagging, 49 Write.

Control-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
CloudTrail1 of 661 Read; 1 restricted, 0 conditionalcloudtrail:GetTrailStatus
CloudWatch5 of 1601 Read, 1 Tagging, 3 Write; 5 restricted, 4 conditionalcloudwatch:DeleteAlarms, cloudwatch:DescribeAlarms, cloudwatch:EnableAlarmActions, cloudwatch:PutMetricAlarm, cloudwatch:TagResource
EC251 of 83422 List, 1 Tagging, 28 Write; 27 restricted, 24 conditionalec2:AllocateAddress, ec2:AssignPrivateIpAddresses, ec2:AssociateAddress, ec2:AssociateIamInstanceProfile, ec2:AttachVolume, ec2:CopySnapshot, ec2:CreateKeyPair, ec2:CreateNetworkInterface, ec2:CreateSnapshots, ec2:CreateTags, ec2:CreateVolume, ec2:DeleteKeyPair and 39 more
EventBridge9 of 711 List, 1 Read, 1 Tagging, 6 Write; 9 restricted, 7 conditionalevents:DeleteRule, events:DescribeRule, events:DisableRule, events:EnableRule, events:ListTargetsByRule, events:PutRule, events:PutTargets, events:RemoveTargets, events:TagResource
IAM9 of 1903 List, 5 Read, 1 Write; 1 restricted, 1 conditionaliam:GetInstanceProfile, iam:GetPolicy, iam:GetPolicyVersion, iam:GetRole, iam:GetRolePolicy, iam:ListAttachedRolePolicies, iam:ListInstanceProfiles, iam:ListRolePolicies, iam:PassRole
Secrets Manager7 of 271 List, 1 Read, 1 Tagging, 4 Write; 7 restricted, 7 conditionalsecretsmanager:CreateSecret, secretsmanager:DeleteSecret, secretsmanager:DescribeSecret, secretsmanager:ListSecrets, secretsmanager:PutSecretValue, secretsmanager:RestoreSecret, secretsmanager:TagResource
Service Quotas1 of 261 Read; 0 restricted, 0 conditionalservicequotas:GetServiceQuota
SQS7 of 202 Read, 1 Tagging, 4 Write; 7 restricted, 7 conditionalsqs:CreateQueue, sqs:DeleteMessage, sqs:DeleteQueue, sqs:GetQueueAttributes, sqs:ReceiveMessage, sqs:SendMessage, sqs:TagQueue
Systems Manager7 of 1643 Read, 1 Tagging, 3 Write; 4 restricted, 3 conditionalssm: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: 51 actions
  • ec2:AllocateAddress (Write)
  • ec2:AssignPrivateIpAddresses (Write)
  • ec2:AssociateAddress (Write)
  • ec2:AssociateIamInstanceProfile (Write)
  • ec2:AttachVolume (Write)
  • ec2:CopySnapshot (Write)
  • ec2:CreateKeyPair (Write)
  • ec2:CreateNetworkInterface (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: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: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)
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 8): 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 55 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).

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.

Same service

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

Download policy.json

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "ecc1",
      "Effect": "Allow",
      "Action": [
        "ec2:DescribeInstances",
        "ec2:DescribeInstanceAttribute",
        "ec2:DescribeRegions",
        "ec2:DescribeSnapshots",
        "ec2:DescribeNetworkInterfaces",
        "ec2:DescribeVolumes",
        "ec2:DescribeInstanceStatus",
        "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": "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/preview-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/preview-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",
            "CreateSnapshots",
            "CopySnapshot",
            "AllocateAddress"
          ]
        }
      }
    },
    {
      "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: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": "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": "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*",
      "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-preview.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-preview.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:preview-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:preview-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": "servicequota1",
      "Effect": "Allow",
      "Action": [
        "servicequotas:GetServiceQuota"
      ],
      "Resource": "*"
    },
    {
      "Sid": "sqs1",
      "Effect": "Allow",
      "Action": [
        "sqs:CreateQueue",
        "sqs:TagQueue"
      ],
      "Resource": "arn:aws:sqs:*:*:do-not-delete-rds-custom-*",
      "Condition": {
        "StringLike": {
          "aws:RequestTag/AWSRDSCustom": [
            "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-oracle"
          ]
        }
      }
    }
  ]
}

Version history

Current version v15, 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.