[英]boto3 UnrecognizedClientException when querying Athena
I am creating an Athena client using the code listed below - 我正在使用下面列出的代码创建Athena客户端-
client = boto3.client('athena',aws_access_key_id='<access key id>',aws_secret_access_key='<secret access key>',region_name='us-east-1')
Then I am using this client to query Athena - 然后,我正在使用此客户端查询雅典娜-
response = client.start_query_execution(QueryString=query_string,QueryExecutionContext={'Database': database},WorkGroup=workgroup)
I see the below error. 我看到以下错误。 Can you please let me know what I may be missing?
您能告诉我我可能会缺少什么吗?
botocore.exceptions.ClientError: An error occurred (UnrecognizedClientException) when calling the StartQueryExecution operation: The security token included in the request is invalid.
botocore.exceptions.ClientError:调用StartQueryExecution操作时发生错误(UnrecognizedClientException):请求中包含的安全令牌无效。
Could you check your aws keys detail ?. 你能检查一下你的aws键细节吗? Error indicates that aws keys are invalid.
错误表明aws密钥无效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.