NeptuneReadOnlyAccess
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.
| Service | Granted | Access levels and limits | Granted by |
|---|---|---|---|
| EC2 | 7 of 834 | 7 List; 0 restricted, 0 conditional | ec2:DescribeAccountAttributes, ec2:DescribeAvailabilityZones, ec2:DescribeInternetGateways, ec2:DescribeSecurityGroups, ec2:DescribeSubnets, ec2:DescribeVpcAttribute, ec2:DescribeVpcs |
| KMS | 4 of 58 | 4 List; 0 restricted, 0 conditional | kms:ListAliases, kms:ListKeyPolicies, kms:ListKeys, kms:ListRetirableGrants |
| CloudWatch Logs | 2 of 133 | 1 List, 1 Read; 2 restricted, 0 conditional | logs:DescribeLogStreams, logs:GetLogEvents |
| Neptune | 16 of 33 | 5 List, 11 Read; 0 restricted, 0 conditional | neptune-db:Get*, neptune-db:List*, neptune-db:Read* |
| RDS | 21 of 173 | 19 List, 2 Read; 0 restricted, 0 conditional | rds: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.
| Service | Granted | Access levels and limits | Granted by |
|---|---|---|---|
| CloudWatch | 2 of 5 | 1 List, 1 Read; 0 restricted, 0 conditional | cloudwatch: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.
Related policies
Same service
- AdministratorAccess-AWSElasticBeanstalk
- AIDevOpsReleaseManagementVPCPolicy
- AmazonAppStreamServiceAccess
- AmazonBioDiscoveryServiceLinkedRolePolicy
- AmazonDataZoneEnvironmentRolePermissionsBoundary
- AmazonDataZoneProjectDeploymentPermissionsBoundary
- AmazonDataZoneProjectRolePermissionsBoundary
- AmazonDataZoneSageMakerProvisioningRolePolicy
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
{
"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/NeptuneReadOnlyAccessCloudFormation
Resources:
ExampleRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument: {} # replace with your trust policy
ManagedPolicyArns:
- arn:aws:iam::aws:policy/NeptuneReadOnlyAccessTerraform
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
- NeptuneReadOnlyAccess (AWS Managed Policy Reference Guide) (retrieved ; supports summary, practicalScope, useCases, securityConsiderations, assignmentGuidance, faqs)
- Using AWS managed policies to access Amazon Neptune databases (Amazon Neptune User Guide) (retrieved ; supports summary, practicalScope, useCases, securityConsiderations, assignmentGuidance, faqs)
- AWS managed policies for job functions (IAM User Guide) (retrieved ; supports bestPractices, faqs)
- Managed policies and inline policies (IAM User Guide) (retrieved ; supports securityConsiderations, faqs)