Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ARN authentication may meet ExpiredTokenException occasionally #92

Closed
lcgogo opened this issue Jun 17, 2021 · 3 comments
Closed

Use ARN authentication may meet ExpiredTokenException occasionally #92

lcgogo opened this issue Jun 17, 2021 · 3 comments
Labels
datasource/Timestream question Further information is requested

Comments

@lcgogo
Copy link

lcgogo commented Jun 17, 2021

After I add ARN to the datasource and get the databases, tables correctly.

I switch to Explore try to write some query,
some times, I met followed error but it may resume later

ExpiredTokenException: The security token included in the request is expired status code: 403, request id: 5U4D7KK6ZSNY4I3I3DTFUIVMEU

图片

I followed the guide to check
https://aws.amazon.com/premiumsupport/knowledge-center/security-token-expired/?nc1=h_ls
The server metadata shows the token has enough time range

cli@ip-172-23-2-62:\~$ date
Thu Jun 17 07:21:14 UTC 2021
cli@ip-172-23-2-62:\~$ curl http://169.254.169.254/latest/meta-data/iam/security-credentials/CoboInfraGrafanaTimestream
{
  "Code" : "Success",
  "LastUpdated" : "2021-06-17T07:20:40Z",
  "Type" : "AWS-HMAC",
  "AccessKeyId" : "***",
  "SecretAccessKey" : "***",
  "Token" : "***",
  "Expiration" : "2021-06-17T13:47:54Z"
}
@tiratatp
Copy link
Contributor

You probably want to remove the tokens and access key since it contains a sensitive information.

@andresmgot
Copy link
Contributor

hi @lcgogo, that seems like a temporary issue. The timestream data source will continuously pull data for some time. If the token expires while retrieving data, you may see this issue. Refreshing the page should force the token to be refreshed. Are you still able to reproduce this issue?

@taleena taleena added question Further information is requested datasource/Timestream labels Mar 14, 2022
@andresmgot
Copy link
Contributor

Closing this due to inactivity, please re-open it if you still find this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datasource/Timestream question Further information is requested
Projects
Archived in project
Development

No branches or pull requests

4 participants