Skip to content

Commit cbf53a3

Browse files
committed
Increase sts credentials duration to 4h
Increase sts credentials duration from 1h to 4h. This is needed to avoid credentials to expire while executing long running tests Signed-off-by: Luca Carrogu <carrogu@amazon.com>
1 parent b99fcbc commit cbf53a3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/integration-tests/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,10 @@ def _retrieve_sts_credential(credential_endpoint, credential_arn, credential_ext
339339

340340
sts = boto3.client("sts", region_name=endpoint_region, endpoint_url=credential_endpoint)
341341
assumed_role_object = sts.assume_role(
342-
RoleArn=credential_arn, ExternalId=credential_external_id, RoleSessionName=region + "_integration_tests_session"
342+
RoleArn=credential_arn,
343+
ExternalId=credential_external_id,
344+
RoleSessionName=region + "_integration_tests_session",
345+
DurationSeconds=14400,
343346
)
344347
aws_credentials = assumed_role_object["Credentials"]
345348

0 commit comments

Comments
 (0)