Commit 752d4ed9 by Ryan McKinley Committed by GitHub

Cloudwatch: session cache should use UTC consistently (#29627)

parent 2f92794c
...@@ -153,7 +153,7 @@ func (e *cloudWatchExecutor) newSession(region string) (*session.Session, error) ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment