Skip to main content
IAM Policy Map

NeptuneReadOnlyAccess

ReaderAWS managedActiveReviewedShow on mapCompare

Summary

Provides read only access to Amazon Neptune. AWS notes that the policy also grants access to Amazon RDS resources.

Permissions imported from the AWS Managed Policy Reference Guide; other sections reviewed against the listed AWS sources.

Identity

ARN
arn:aws:iam::aws:policy/NeptuneReadOnlyAccess
Default version
v3
Created
Last edited
Services
cloudwatch, ec2, kms, logs, neptune-db, rds

Control-plane actions (50)

By access level: 36 List, 14 Read.

Control-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
EC27 of 8347 List; 0 restricted, 0 conditionalec2:DescribeAccountAttributes, ec2:DescribeAvailabilityZones, ec2:DescribeInternetGateways, ec2:DescribeSecurityGroups, ec2:DescribeSubnets, ec2:DescribeVpcAttribute, ec2:DescribeVpcs
KMS4 of 584 List; 0 restricted, 0 conditionalkms:ListAliases, kms:ListKeyPolicies, kms:ListKeys, kms:ListRetirableGrants
CloudWatch Logs2 of 1331 List, 1 Read; 2 restricted, 0 conditionallogs:DescribeLogStreams, logs:GetLogEvents
Neptune16 of 335 List, 11 Read; 0 restricted, 0 conditionalneptune-db:Get*, neptune-db:List*, neptune-db:Read*
RDS21 of 17319 List, 2 Read; 0 restricted, 0 conditionalrds:DescribeAccountAttributes, rds:DescribeCertificates, rds:DescribeDBClusterParameterGroups, rds:DescribeDBClusterParameters, rds:DescribeDBClusterSnapshotAttributes, rds:DescribeDBClusterSnapshots, rds:DescribeDBClusters, rds:DescribeDBEngineVersions, rds:DescribeDBInstances, rds:DescribeDBLogFiles, rds:DescribeDBParameterGroups, rds:DescribeDBParameters and 9 more
EC2: 7 actions
  • ec2:DescribeAccountAttributes (List)
  • ec2:DescribeAvailabilityZones (List)
  • ec2:DescribeInternetGateways (List)
  • ec2:DescribeSecurityGroups (List)
  • ec2:DescribeSubnets (List)
  • ec2:DescribeVpcAttribute (List)
  • ec2:DescribeVpcs (List)
KMS: 4 actions
  • kms:ListAliases (List)
  • kms:ListKeyPolicies (List)
  • kms:ListKeys (List)
  • kms:ListRetirableGrants (List)
CloudWatch Logs: 2 actions
  • logs:DescribeLogStreams (List)
  • logs:GetLogEvents (Read)
Neptune: 16 actions
  • neptune-db:GetEngineStatus (Read)
  • neptune-db:GetGraphSummary (Read)
  • neptune-db:GetLoaderJobStatus (Read)
  • neptune-db:GetMLDataProcessingJobStatus (Read)
  • neptune-db:GetMLEndpointStatus (Read)
  • neptune-db:GetMLModelTrainingJobStatus (Read)
  • neptune-db:GetMLModelTransformJobStatus (Read)
  • neptune-db:GetQueryStatus (Read)
  • neptune-db:GetStatisticsStatus (Read)
  • neptune-db:GetStreamRecords (Read)
  • neptune-db:ListLoaderJobs (List)
  • neptune-db:ListMLDataProcessingJobs (List)
  • neptune-db:ListMLEndpoints (List)
  • neptune-db:ListMLModelTrainingJobs (List)
  • neptune-db:ListMLModelTransformJobs (List)
  • neptune-db:ReadDataViaQuery (Read)
RDS: 21 actions
  • rds:DescribeAccountAttributes (List)
  • rds:DescribeCertificates (List)
  • rds:DescribeDBClusterParameterGroups (List)
  • rds:DescribeDBClusterParameters (List)
  • rds:DescribeDBClusterSnapshotAttributes (List)
  • rds:DescribeDBClusterSnapshots (List)
  • rds:DescribeDBClusters (List)
  • rds:DescribeDBEngineVersions (List)
  • rds:DescribeDBInstances (List)
  • rds:DescribeDBLogFiles (List)
  • rds:DescribeDBParameterGroups (List)
  • rds:DescribeDBParameters (List)
  • rds:DescribeDBSubnetGroups (List)
  • rds:DescribeEventCategories (List)
  • rds:DescribeEventSubscriptions (List)
  • rds:DescribeEvents (List)
  • rds:DescribeGlobalClusters (List)
  • rds:DescribeOrderableDBInstanceOptions (List)
  • rds:DescribePendingMaintenanceActions (List)
  • rds:DownloadDBLogFilePortion (Read)
  • rds:ListTagsForResource (Read)

Data-plane actions (2)

By access level: 1 List, 1 Read.

Data-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
CloudWatch2 of 51 List, 1 Read; 0 restricted, 0 conditionalcloudwatch:GetMetricStatistics, cloudwatch:ListMetrics
CloudWatch: 2 actions
  • cloudwatch:GetMetricStatistics (Read)
  • cloudwatch:ListMetrics (List)

Excluded and conditional actions

No patterns are excluded by NotAction or Deny statements.

Resource scope and attachment

Resource scope across granted actions: mixed.

Can be attached: Yes, to users, groups and roles.

Why this tier

  • Grants only List and Read actions.

Guidance

Practical scope

Statements allow, on Resource "*", 21 read-style rds actions (for example rds:DescribeDBClusters, rds:DescribeDBInstances, rds:DownloadDBLogFilePortion and rds:ListTagsForResource), cloudwatch:GetMetricStatistics and cloudwatch:ListMetrics, seven ec2 Describe actions, kms:ListKeys, kms:ListRetirableGrants, kms:ListAliases and kms:ListKeyPolicies, and neptune-db:Read*, neptune-db:Get* and neptune-db:List*. logs:DescribeLogStreams and logs:GetLogEvents are limited to log streams in log groups under /aws/rds/ and /aws/neptune/.

Use cases

  • View Neptune cluster configurations and query data without making changes, as the Neptune User Guide describes it.

Best practices

  • AWS managed policies don't grant least privilege permissions. The IAM User Guide suggests using IAM Access Analyzer to see which permissions principals actually use, then writing a custom policy or generating one with only the required permissions.

Security considerations

  • The policy includes neptune-db:Read*, neptune-db:Get* and neptune-db:List* on all resources, which the Neptune User Guide calls read-only data-access actions.
  • AWS notes that the policy also grants access to Amazon RDS resources, so the rds read actions are not limited to Neptune clusters.
  • The policy includes rds:DownloadDBLogFilePortion and logs:GetLogEvents, which read database log content.
  • You cannot change the permissions in an AWS managed policy. If AWS updates the policy, the update affects every user, group and role it is attached to.

Assignment guidance

You can attach this policy to your users, groups and roles. The reference page also links to guidance on creating a permission set using AWS managed policies in IAM Identity Center. It fits users who need to view Neptune cluster configurations and query data without making changes. Where a narrower scope is needed, AWS recommends customer managed policies specific to your use cases.

Same service

Same domain

Frequently asked questions

When should I attach NeptuneReadOnlyAccess?
The Neptune User Guide says to use it for users who need to view cluster configurations and query data without making changes. You can attach it to users, groups and roles.
What does NeptuneReadOnlyAccess grant?
It allows read-style rds actions, CloudWatch metric reads, EC2 describe actions, KMS list actions and log stream reads on RDS and Neptune log groups, plus neptune-db:Read*, neptune-db:Get* and neptune-db:List* on all resources.
What are the security risks of NeptuneReadOnlyAccess?
It grants data access through neptune-db and rds log reads as well as configuration reads. AWS notes it also grants access to Amazon RDS resources. AWS managed policies do not grant least privilege permissions, and an AWS update to the policy affects every identity it is attached to.

Policy JSON

Download policy.json

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowReadOnlyPermissionsForRDS",
      "Effect": "Allow",
      "Action": [
        "rds:DescribeAccountAttributes",
        "rds:DescribeCertificates",
        "rds:DescribeDBClusterParameterGroups",
        "rds:DescribeDBClusterParameters",
        "rds:DescribeDBClusterSnapshotAttributes",
        "rds:DescribeDBClusterSnapshots",
        "rds:DescribeDBClusters",
        "rds:DescribeDBEngineVersions",
        "rds:DescribeDBInstances",
        "rds:DescribeDBLogFiles",
        "rds:DescribeDBParameterGroups",
        "rds:DescribeDBParameters",
        "rds:DescribeDBSubnetGroups",
        "rds:DescribeEventCategories",
        "rds:DescribeEventSubscriptions",
        "rds:DescribeEvents",
        "rds:DescribeGlobalClusters",
        "rds:DescribeOrderableDBInstanceOptions",
        "rds:DescribePendingMaintenanceActions",
        "rds:DownloadDBLogFilePortion",
        "rds:ListTagsForResource"
      ],
      "Resource": "*"
    },
    {
      "Sid": "AllowReadOnlyPermissionsForCloudwatch",
      "Effect": "Allow",
      "Action": [
        "cloudwatch:GetMetricStatistics",
        "cloudwatch:ListMetrics"
      ],
      "Resource": "*"
    },
    {
      "Sid": "AllowReadOnlyPermissionsForEC2",
      "Effect": "Allow",
      "Action": [
        "ec2:DescribeAccountAttributes",
        "ec2:DescribeAvailabilityZones",
        "ec2:DescribeInternetGateways",
        "ec2:DescribeSecurityGroups",
        "ec2:DescribeSubnets",
        "ec2:DescribeVpcAttribute",
        "ec2:DescribeVpcs"
      ],
      "Resource": "*"
    },
    {
      "Sid": "AllowReadOnlyPermissionsForKMS",
      "Effect": "Allow",
      "Action": [
        "kms:ListKeys",
        "kms:ListRetirableGrants",
        "kms:ListAliases",
        "kms:ListKeyPolicies"
      ],
      "Resource": "*"
    },
    {
      "Sid": "AllowReadOnlyPermissionsForLogs",
      "Effect": "Allow",
      "Action": [
        "logs:DescribeLogStreams",
        "logs:GetLogEvents"
      ],
      "Resource": [
        "arn:aws:logs:*:*:log-group:/aws/rds/*:log-stream:*",
        "arn:aws:logs:*:*:log-group:/aws/neptune/*:log-stream:*"
      ]
    },
    {
      "Sid": "AllowReadOnlyPermissionsForNeptuneDB",
      "Effect": "Allow",
      "Action": [
        "neptune-db:Read*",
        "neptune-db:Get*",
        "neptune-db:List*"
      ],
      "Resource": [
        "*"
      ]
    }
  ]
}

Version history

Current version v3, edited by AWS on 2024-01-22. Version history is recorded from 2026-11-11. Earlier versions are in the IAM console under Policy versions.

Attach snippets

AWS CLI

aws iam attach-role-policy --role-name ROLE_NAME --policy-arn arn:aws:iam::aws:policy/NeptuneReadOnlyAccess
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/NeptuneReadOnlyAccess
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/NeptuneReadOnlyAccess

CloudFormation

Resources:
  ExampleRole:
    Type: AWS::IAM::Role
    Properties:
      AssumeRolePolicyDocument: {}  # replace with your trust policy
      ManagedPolicyArns:
        - arn:aws:iam::aws:policy/NeptuneReadOnlyAccess

Terraform

resource "aws_iam_role_policy_attachment" "neptunereadonlyaccess" {
  role       = aws_iam_role.example.name
  policy_arn = "arn:aws:iam::aws:policy/NeptuneReadOnlyAccess"
}

CDK (TypeScript)

role.addManagedPolicy(
  iam.ManagedPolicy.fromAwsManagedPolicyName("NeptuneReadOnlyAccess"),
);

Sources