AmazonRDSPreviewServiceRolePolicy

Last Modified

Mar 12, 2026

March 12, 2026 at 09:28 PM UTC

Version

v9

Total Versions

15

Created

Aug 7, 2024

Actions

42

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": [
        {
          "Effect": "Allow",
          "Action": [
            "rds:CrossRegionCommunication"
          ],
          "Resource": "*"
        },
        {
          "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:ReleaseAddress",
            "ec2:RevokeSecurityGroupIngress"
          ],
          "Resource": "*"
        },
        {
          "Effect": "Allow",
          "Action": [
            "logs:CreateLogGroup"
          ],
          "Resource": [
            "arn:aws:logs:*:*:log-group:/aws/rds/*"
          ]
        },
        {
          "Effect": "Allow",
          "Action": [
            "logs:CreateLogStream",
            "logs:PutLogEvents",
            "logs:DescribeLogStreams"
          ],
          "Resource": [
            "arn:aws:logs:*:*:log-group:/aws/rds/*:log-stream:*"
          ]
        },
        {
          "Effect": "Allow",
          "Action": [
            "cloudwatch:PutMetricData"
          ],
          "Resource": "*",
          "Condition": {
            "StringEquals": {
              "cloudwatch:namespace": [
                "AWS/DocDB-Preview",
                "AWS/Neptune-Preview",
                "AWS/RDS-Preview",
                "AWS/Usage"
              ]
            }
          }
        },
        {
          "Effect": "Allow",
          "Action": [
            "secretsmanager:GetRandomPassword"
          ],
          "Resource": "*"
        },
        {
          "Effect": "Allow",
          "Action": [
            "secretsmanager:DeleteSecret",
            "secretsmanager:DescribeSecret",
            "secretsmanager:PutSecretValue",
            "secretsmanager:RotateSecret",
            "secretsmanager:UpdateSecret",
            "secretsmanager:UpdateSecretVersionStage",
            "secretsmanager:ListSecretVersionIds"
          ],
          "Resource": [
            "arn:aws:secretsmanager:*:*:secret:rds-preview-us-east-2!*"
          ],
          "Condition": {
            "StringLike": {
              "secretsmanager:ResourceTag/aws:secretsmanager:owningService": "rds-preview-us-east-2"
            }
          }
        },
        {
          "Effect": "Allow",
          "Action": "secretsmanager:TagResource",
          "Resource": "arn:aws:secretsmanager:*:*:secret:rds-preview-us-east-2!*",
          "Condition": {
            "ForAllValues:StringEquals": {
              "aws:TagKeys": [
                "aws:rds:primaryDBInstanceArn",
                "aws:rds:primaryDBClusterArn"
              ]
            },
            "StringLike": {
              "secretsmanager:ResourceTag/aws:secretsmanager:owningService": "rds-preview-us-east-2"
            }
          }
        }
      ]
    },
    "VersionId": "v9",
    "IsDefaultVersion": true,
    "CreateDate": "2024-08-07T01:02:38+00:00"
  }
}

Version History (18 recorded)

Raw history

AmazonRDSPreviewServiceRolePolicy - Policy Version v9

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

Mar 12, 2026

ef48143

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.

Aug 7, 2024

a1da41e

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.

Oct 4, 2023

af0f93d

Update detected

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

Oct 4, 2023

dda773d

Update detected

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

Dec 13, 2022

6aed094

Update detected

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

Jun 7, 2022

8dd9652

Update detected

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

Feb 22, 2022

dffcad4

Update detected

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

Nov 19, 2020

5c39b2f

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 29, 2020

13b318f

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

First commit

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

Feb 10, 2019

ad4c2e8