Skip to content

Commit

Permalink
fix(maxcompute): update assume role duration seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayushi Sharma committed Dec 10, 2024
1 parent f165d8d commit f3509b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/providers/maxcompute/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ func getClientConfig(providerURN, accountID, accountSecret, regionID, assumeAsRA
return nil, fmt.Errorf("failed to initialize STS client: %w", err)
}

durationSeconds := assumeRoleDuration * int64(time.Minute.Seconds())
durationSeconds := assumeRoleDuration * int64(time.Hour.Seconds())
res, err := stsClient.AssumeRole(&sts.AssumeRoleRequest{
DurationSeconds: &durationSeconds,
RoleArn: &assumeAsRAMRole,
Expand Down

0 comments on commit f3509b8

Please sign in to comment.