How can I prevent attachments from getting lost during long test runs?
Increase the S3 session token duration to ensure it does not expire before the test run completes.
-
Modify the AWS session token duration to extend the session up to 12 hours. This prevents the token from expiring during long test runs.
Example command:
aws sts assume-role \--role-arn arn:aws:iam::123456789012:role/MyRole \--role-session-name my-session \--duration-seconds 43200 # 12 hoursThis command sets the session duration to 12 hours, ensuring the token remains valid throughout the test run.
- The default AWS session duration is 1 hour. Adjusting this to a longer duration is necessary for test runs exceeding this time.