我试图使用未经授权的Cognito IAM角色从Javascript SDK连接Athena,但我遇到了AccessDenied异常。使用相同的设置,我可以访问S3和dynamodb。
我已经为S3和Athena提供了池角色的权限,以进行未经授权的访问。
Error: User: arn:aws:sts::11xxxxxxxxx:assumed-role/Cognito_Pool1Unauth_Role/CognitoIdentityCredentials is not authorized to perform: athena:StartQueryExecution
// A lot of useless lines
at constructor.callListeners (aws-sdk.min.js:2) "AccessDeniedException: User: arn:aws:sts::11xxxxxxxxx:assumed-role/Cognito_Pool1Unauth_Role/CognitoIdentityCredentials is not authorized to perform: athena:StartQueryExecution
是不是我们不能使用Cognito未经授权的池Id从Javascript连接Athena?我想我们应该可以。我们还需要做其他设置吗?