AmazonRDSServiceRolePolicy

Last Modified

Mar 12, 2026

March 12, 2026 at 09:28 PM UTC

Version

v14

Total Versions

15

Created

Jul 1, 2024

Actions

56

Risk

Medium

The same capabilities in a scoped form, resource policy writes, reads across all data, or full access to a whole service. Read from this policy document alone: trust policies, boundaries and SCPs in your account still decide what actually succeeds. How this is assessed

  • Medium

    Can rewrite resource policies and sharing

    Grants 4 permissions management actions across 1 service (ec2) on any resource, enough to share resources outside the account.

    ec2:createcoippoolpermissionec2:createlocalgatewayroutetablepermissionec2:deletecoippoolpermissionec2:deletelocalgatewayroutetablepermission

    Use with caution: Turn on IAM Access Analyzer external access findings, and keep account-level guards like S3 Block Public Access enabled.

Policy Document

View on GitHub
{
  "PolicyVersion": {
    "Document": {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Sid": "CrossRegionCommunication",
          "Effect": "Allow",
          "Action": [
            "rds:CrossRegionCommunication"
          ],
          "Resource": "*"
        },
        {
          "Sid": "Ec2",
          "Effect": "Allow",
          "Action": [
            "ec2:AllocateAddress",
            "ec2:AssociateAddress",
            "ec2:AuthorizeSecurityGroupIngress",
            "ec2:CreateCoipPoolPermission",
            "ec2:CreateLocalGatewayRouteTablePermission",
            "ec2:CreateNetworkInterface",
            "ec2:CreateSecurityGroup",
            "ec2:DeleteCoipPoolPermission",
            "ec2:DeleteLocalGatewayRouteTablePermission",
            "ec2:DeleteNetworkInterface",
            "ec2:DeleteSecurityGroup",
            "ec2:DescribeAddresses",
            "ec2:DescribeAvailabilityZones",
            "ec2:DescribeCoipPools",
            "ec2:DescribeInternetGateways",
            "ec2:DescribeLocalGatewayRouteTablePermissions",
            "ec2:DescribeLocalGatewayRouteTables",
            "ec2:DescribeLocalGatewayRouteTableVpcAssociations",
            "ec2:DescribeLocalGateways",
            "ec2:DescribeSecurityGroups",
            "ec2:DescribeSubnets",
            "ec2:DescribeVpcAttribute",
            "ec2:DescribeVpcs",
            "ec2:DisassociateAddress",
            "ec2:ModifyNetworkInterfaceAttribute",
            "ec2:ModifyVpcEndpoint",
            "ec2:ReleaseAddress",
            "ec2:RevokeSecurityGroupIngress",
            "ec2:CreateVpcEndpoint",
            "ec2:DescribeVpcEndpoints",
            "ec2:DeleteVpcEndpoints",
            "ec2:AssignPrivateIpAddresses",
            "ec2:UnassignPrivateIpAddresses"
          ],
          "Resource": "*"
        },
        {
          "Sid": "CloudWatchLogs",
          "Effect": "Allow",
          "Action": [
            "logs:CreateLogGroup"
          ],
          "Resource": [
            "arn:aws:logs:*:*:log-group:/aws/rds/*",
            "arn:aws:logs:*:*:log-group:/aws/docdb/*",
            "arn:aws:logs:*:*:log-group:/aws/neptune/*"
          ]
        },
        {
          "Sid": "CloudWatchStreams",
          "Effect": "Allow",
          "Action": [
            "logs:CreateLogStream",
            "logs:PutLogEvents",
            "logs:DescribeLogStreams"
          ],
          "Resource": [
            "arn:aws:logs:*:*:log-group:/aws/rds/*:log-stream:*",
            "arn:aws:logs:*:*:log-group:/aws/docdb/*:log-stream:*",
            "arn:aws:logs:*:*:log-group:/aws/neptune/*:log-stream:*"
          ]
        },
        {
          "Sid": "Kinesis",
          "Effect": "Allow",
          "Action": [
            "kinesis:CreateStream",
            "kinesis:PutRecord",
            "kinesis:PutRecords",
            "kinesis:DescribeStream",
            "kinesis:SplitShard",
            "kinesis:MergeShards",
            "kinesis:DeleteStream",
            "kinesis:UpdateShardCount"
          ],
          "Resource": [
            "arn:aws:kinesis:*:*:stream/aws-rds-das-*"
          ]
        },
        {
          "Sid": "CloudWatch",
          "Effect": "Allow",
          "Action": [
            "cloudwatch:PutMetricData"
          ],
          "Resource": "*",
          "Condition": {
            "StringEquals": {
              "cloudwatch:namespace": [
                "AWS/DocDB",
                "AWS/Neptune",
                "AWS/RDS",
                "AWS/Usage"
              ]
            }
          }
        },
        {
          "Sid": "SecretsManagerPassword",
          "Effect": "Allow",
          "Action": [
            "secretsmanager:GetRandomPassword"
          ],
          "Resource": "*"
        },
        {
          "Sid": "SecretsManagerSecret",
          "Effect": "Allow",
          "Action": [
            "secretsmanager:DeleteSecret",
            "secretsmanager:DescribeSecret",
            "secretsmanager:PutSecretValue",
            "secretsmanager:RotateSecret",
            "secretsmanager:UpdateSecret",
            "secretsmanager:UpdateSecretVersionStage",
            "secretsmanager:ListSecretVersionIds"
          ],
          "Resource": [
            "arn:aws:secretsmanager:*:*:secret:rds!*"
          ],
          "Condition": {
            "StringLike": {
              "secretsmanager:ResourceTag/aws:secretsmanager:owningService": "rds"
            }
          }
        },
        {
          "Sid": "SecretsManagerTags",
          "Effect": "Allow",
          "Action": "secretsmanager:TagResource",
          "Resource": "arn:aws:secretsmanager:*:*:secret:rds!*",
          "Condition": {
            "ForAllValues:StringEquals": {
              "aws:TagKeys": [
                "aws:rds:primaryDBInstanceArn",
                "aws:rds:primaryDBClusterArn"
              ]
            },
            "StringLike": {
              "secretsmanager:ResourceTag/aws:secretsmanager:owningService": "rds"
            }
          }
        }
      ]
    },
    "VersionId": "v14",
    "IsDefaultVersion": true,
    "CreateDate": "2024-07-01T22:42:05+00:00"
  }
}

Version History (18 recorded)

Raw history

AmazonRDSServiceRolePolicy - Policy Version v14

No recorded action delta - this version predates the change index. View the raw diff.

Mar 12, 2026

66496b9

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Sep 18, 2024

aafbae9

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Jul 2, 2024

3d561b7

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

May 13, 2024

1b36617

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Jan 19, 2024

6e661f7

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Dec 13, 2022

95dd3b3

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Mar 21, 2022

c2c3277

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Feb 24, 2022

b317cdb

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Nov 21, 2020

95dcd7d

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Oct 22, 2020

d75b6dd

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Jul 31, 2020

551ec06

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Sep 16, 2019

49aa1d0

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Sep 16, 2019

71619cf

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Sep 16, 2019

8279033

`2019-08-29`

No recorded action delta - this version predates the change index. View the raw diff.

Aug 29, 2019

5016d52

I updated my CLI and it looks like it reordered everything and changed the white-space, so everything looks changed, but is not

No recorded action delta - this version predates the change index. View the raw diff.

Jul 12, 2019

9d2dff1

Update

No recorded action delta - this version predates the change index. View the raw diff.

Apr 17, 2019

a7db6b1

First commit

No recorded action delta - this version predates the change index. View the raw diff.

Feb 10, 2019

ad4c2e8