Error - Can't Connect to Amazon Athena #21437
Answered
by
ftironectidata
ftironectidata
asked this question in
Q&A
Replies: 4 comments 1 reply
-
Hello @ftironectidata
Did you try to ask your database admin for special rights? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi Anastasiya,
Thanks for your help! Please let me know what permissions I need and how to give them.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I added the permissions and It’s working now!
Best Regards,
Frank
|
Beta Was this translation helpful? Give feedback.
1 reply
-
You need permission to perform the `athena:StartQueryExecution` action.
To resolve this issue, follow these steps:
1. **Identify the IAM User or Role**: Determine which IAM user or role you are using to access Athena.
2. **Update IAM Permissions**:
- Log in to the AWS Management Console.
- Navigate to the IAM service.
- Find and select the IAM user or role that needs the updated permissions.
- Attach or update the policy to include the necessary Athena permissions.
Here's an example of a policy that includes the required permissions:
```json
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"athena:StartQueryExecution",
"athena:GetQueryExecution",
"athena:GetQueryResults"
],
"Resource": "*"
}
]
}
```
3. **Attach the Policy**:
- If you are using a custom policy, update it to include the above permissions.
- If you are using managed policies, ensure that the policies attached to your IAM user or role include permissions for Athena.
4. **Verify the Update**:
- After updating the permissions, attempt to run the query again in Athena to verify that the issue is resolved.
If you do not have the necessary permissions to update IAM roles or policies, contact your AWS administrator for assistance. They will need to grant the appropriate permissions for your user or role.
Best Regards,
Frank
…________________________________
From: G2RSHappyDog ***@***.***>
Sent: Friday, July 5, 2024 1:21 PM
To: dbeaver/dbeaver ***@***.***>
Cc: Frank Tirone ***@***.***>; Mention ***@***.***>
Subject: Re: [dbeaver/dbeaver] Error - Can't Connect to Amazon Athena (Discussion #21437)
Hello,
We have a user receiving the same error in DBeaver while accessing AWS Athena and I would like to ask what permissions were granted and where in order for the query to successfully run.
Thank you
—
Reply to this email directly, view it on GitHub<#21437 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A3WKSCT72A4V66RDVE4QAP3ZK3IZVAVCNFSM6AAAAABHSKZVF2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TSNZQGQ4TO>.
You are receiving this because you were mentioned.
*******CONFIDENTIALITY NOTICE and DISCLAIMER******* The information in this e-mail and any attachments are confidential and may be privileged or otherwise protected from disclosure and solely for the use of the person(s) or entity to whom it is intended. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you have received this message in error and are not the intended recipient, please notify the sender immediately and delete this message and any attachments from your system. If you are not the intended recipient, be advised that any use of this message is prohibited and may be unlawful, and you must not copy this message or attachment or disclose the contents to any other person.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
LonwoLonwo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
[Simba]AthenaJDBC An error has been thrown from the AWS Athena client. You are not authorized to perform: athena:StartQueryExecution on the resource. After your AWS administrator or you have updated your permissions, please try again. [Execution ID not available]
You are not authorized to perform: athena:StartQueryExecution on the resource. After your AWS administrator or you have updated your permissions, please try again. (Service: AmazonAthena; Status Code: 400; Error Code: AccessDeniedException; Request ID: acab5009-88d9-499c-b58b-c8159fd892bc; Proxy: null)
You are not authorized to perform: athena:StartQueryExecution on the resource. After your AWS administrator or you have updated your permissions, please try again. (Service: AmazonAthena; Status Code: 400; Error Code: AccessDeniedException; Request ID: acab5009-88d9-499c-b58b-c8159fd892bc; Proxy: null)
DBeaver Version
Community Addition 23.2.1.202309260508
Operating System
Windows 11
Database and driver
Amazon Athena
Magnitude Simba Athena JDBC Data
Version 2.0.25
Steps to reproduce
Try to connect to database
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions