mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
Cloudwatch: session cache should use UTC consistently (#29627)
This commit is contained in:
parent
2f92794c94
commit
752d4ed941
@ -153,7 +153,7 @@ func (e *cloudWatchExecutor) newSession(region string) (*session.Session, error)
|
||||
}
|
||||
|
||||
duration := stscreds.DefaultDuration
|
||||
expiration := time.Now().Add(duration)
|
||||
expiration := time.Now().UTC().Add(duration)
|
||||
if dsInfo.AssumeRoleARN != "" {
|
||||
// We should assume a role in AWS
|
||||
plog.Debug("Trying to assume role in AWS", "arn", dsInfo.AssumeRoleARN)
|
||||
|
Loading…
Reference in New Issue
Block a user