mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -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
|
duration := stscreds.DefaultDuration
|
||||||
expiration := time.Now().Add(duration)
|
expiration := time.Now().UTC().Add(duration)
|
||||||
if dsInfo.AssumeRoleARN != "" {
|
if dsInfo.AssumeRoleARN != "" {
|
||||||
// We should assume a role in AWS
|
// We should assume a role in AWS
|
||||||
plog.Debug("Trying to assume role in AWS", "arn", dsInfo.AssumeRoleARN)
|
plog.Debug("Trying to assume role in AWS", "arn", dsInfo.AssumeRoleARN)
|
||||||
|
Loading…
Reference in New Issue
Block a user