Skip to content

Commit

Permalink
Increase sts credentials duration to 4h
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
lukeseawalker committed Apr 15, 2022
1 parent b99fcbc commit cbf53a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/integration-tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,10 @@ def _retrieve_sts_credential(credential_endpoint, credential_arn, credential_ext

sts = boto3.client("sts", region_name=endpoint_region, endpoint_url=credential_endpoint)
assumed_role_object = sts.assume_role(
RoleArn=credential_arn, ExternalId=credential_external_id, RoleSessionName=region + "_integration_tests_session"
RoleArn=credential_arn,
ExternalId=credential_external_id,
RoleSessionName=region + "_integration_tests_session",
DurationSeconds=14400,
)
aws_credentials = assumed_role_object["Credentials"]

Expand Down

0 comments on commit cbf53a3

Please sign in to comment.