AmazonGrafanaAthenaAccess
Summary
This policy grants access to Amazon Athena and the dependencies needed to enable querying and writing results to s3 from the Amazon Athena plugin in Amazon Grafana.
Permissions imported from the AWS Managed Policy Reference Guide; other sections pending editorial review.
Identity
- ARN
arn:aws:iam::aws:policy/service-role/AmazonGrafanaAthenaAccess- Default version
- v1
- Created
- Last edited
- Services
- athena, glue, s3
Control-plane actions (23)
By access level: 4 List, 1 Permissions management, 15 Read, 3 Write.
| Service | Granted | Access levels and limits | Granted by |
|---|---|---|---|
| Athena | 12 of 86 | 3 List, 7 Read, 2 Write; 5 restricted, 5 conditional | athena:GetDataCatalog, athena:GetDatabase, athena:GetQueryExecution, athena:GetQueryResults, athena:GetTableMetadata, athena:GetWorkGroup, athena:ListDataCatalogs, athena:ListDatabases, athena:ListTableMetadata, athena:ListWorkGroups, athena:StartQueryExecution, athena:StopQueryExecution |
| Glue | 7 of 306 | 7 Read; 0 restricted, 0 conditional | glue:BatchGetPartition, glue:GetDatabase, glue:GetDatabases, glue:GetPartition, glue:GetPartitions, glue:GetTable, glue:GetTables |
| S3 | 4 of 155 | 1 List, 1 Permissions management, 1 Read, 1 Write; 4 restricted, 0 conditional | s3:CreateBucket, s3:GetBucketLocation, s3:ListBucketMultipartUploads, s3:PutBucketPublicAccessBlock |
Athena: 12 actions
- athena:GetDataCatalog (Read)
- athena:GetDatabase (Read)
- athena:GetQueryExecution (Read)
- athena:GetQueryResults (Read)
- athena:GetTableMetadata (Read)
- athena:GetWorkGroup (Read)
- athena:ListDataCatalogs (List)
- athena:ListDatabases (List)
- athena:ListTableMetadata (Read)
- athena:ListWorkGroups (List)
- athena:StartQueryExecution (Write)
- athena:StopQueryExecution (Write)
Glue: 7 actions
- glue:BatchGetPartition (Read)
- glue:GetDatabase (Read)
- glue:GetDatabases (Read)
- glue:GetPartition (Read)
- glue:GetPartitions (Read)
- glue:GetTable (Read)
- glue:GetTables (Read)
S3: 4 actions
- s3:CreateBucket (Write)
- s3:GetBucketLocation (Read)
- s3:ListBucketMultipartUploads (List)
- s3:PutBucketPublicAccessBlock (Permissions management)
Data-plane actions (5)
By access level: 2 List, 1 Read, 2 Write.
| Service | Granted | Access levels and limits | Granted by |
|---|---|---|---|
| S3 | 5 of 25 | 2 List, 1 Read, 2 Write; 5 restricted, 0 conditional | s3:AbortMultipartUpload, s3:GetObject, s3:ListBucket, s3:ListMultipartUploadParts, s3:PutObject |
S3: 5 actions
- s3:AbortMultipartUpload (Write)
- s3:GetObject (Read)
- s3:ListBucket (List)
- s3:ListMultipartUploadParts (List)
- s3:PutObject (Write)
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 5 write, tagging or permissions-management actions, short of full control of any service.
- Grants data-plane write actions on a data store, but only for scoped resources or under conditions.
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.
Related policies
Same service
- AccessAnalyzerServiceRolePolicy
- AdministratorAccess-AWSElasticBeanstalk
- AmazonAppFlowFullAccess
- AmazonAppStreamServiceAccess
- AmazonAthenaFullAccess
- AmazonBedrockStudioPermissionsBoundary
- AmazonBraketJobsExecutionPolicy
- AmazonBraketServiceRolePolicy
Same domain
- AmazonChimeSDKMediaPipelinesServiceLinkedRolePolicy
- AmazonChimeSDKMessagingServiceRolePolicy
- AmazonDataZoneDomainExecutionRolePolicy
- AmazonDataZoneEnvironmentRolePermissionsBoundary
- AmazonDataZoneFullAccess
- AmazonDataZoneFullUserAccess
- AmazonDataZoneGlueManageAccessRolePolicy
- AmazonDataZoneProjectRolePermissionsBoundary
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
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"athena:GetDatabase",
"athena:GetDataCatalog",
"athena:GetTableMetadata",
"athena:ListDatabases",
"athena:ListDataCatalogs",
"athena:ListTableMetadata",
"athena:ListWorkGroups"
],
"Resource": [
"*"
]
},
{
"Effect": "Allow",
"Action": [
"athena:GetQueryExecution",
"athena:GetQueryResults",
"athena:GetWorkGroup",
"athena:StartQueryExecution",
"athena:StopQueryExecution"
],
"Resource": [
"*"
],
"Condition": {
"Null": {
"aws:ResourceTag/GrafanaDataSource": "false"
}
}
},
{
"Effect": "Allow",
"Action": [
"glue:GetDatabase",
"glue:GetDatabases",
"glue:GetTable",
"glue:GetTables",
"glue:GetPartition",
"glue:GetPartitions",
"glue:BatchGetPartition"
],
"Resource": [
"*"
]
},
{
"Effect": "Allow",
"Action": [
"s3:GetBucketLocation",
"s3:GetObject",
"s3:ListBucket",
"s3:ListBucketMultipartUploads",
"s3:ListMultipartUploadParts",
"s3:AbortMultipartUpload",
"s3:CreateBucket",
"s3:PutObject",
"s3:PutBucketPublicAccessBlock"
],
"Resource": [
"arn:aws:s3:::grafana-athena-query-results-*"
]
}
]
}
Version history
Current version v1, edited by AWS on 2021-11-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/service-role/AmazonGrafanaAthenaAccess
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/service-role/AmazonGrafanaAthenaAccess
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/service-role/AmazonGrafanaAthenaAccessCloudFormation
Resources:
ExampleRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument: {} # replace with your trust policy
ManagedPolicyArns:
- arn:aws:iam::aws:policy/service-role/AmazonGrafanaAthenaAccessTerraform
resource "aws_iam_role_policy_attachment" "service_role_amazongrafanaathenaaccess" {
role = aws_iam_role.example.name
policy_arn = "arn:aws:iam::aws:policy/service-role/AmazonGrafanaAthenaAccess"
}CDK (TypeScript)
role.addManagedPolicy(
iam.ManagedPolicy.fromAwsManagedPolicyName("service-role/AmazonGrafanaAthenaAccess"),
);Sources
Pending editorial review. No editorial sources are listed yet.