Configure STS Token Expiry Buffer for STS Token¶
AWS STS session credentials are valid for a fixed period (default one hour). Right at that boundary, we can observe failures like a token was valid when work started but is expired before it finishes—showing up as intermittent authentication errors or broken access mid-session. An STS expiry buffer makes the dataserver assume the credential expires sooner than the timestamp AWS returns, so it refreshes the token early and leaves a safety margin. The default buffer is 60 seconds.
-
Open the
vars.dataserver.aws.ymlfile: -
To configure the STS Token expiry buffer for a configured profile, include the following property in the profile properties:
YAML For example, to configure the STS Token expiry buffer to 120 seconds, include the following property in the profile properties:
-
Run the following command to deploy the service with updated configurations:
Run the following command to run the post install steps:
- In PrivaceraCloud, navigate to Settings -> Applications.
- On the Connected Applications screen, select S3.
- On the screen, click the edit icon, click on Access Management -> ADVANCED tab.
- Add the following property with the appropriate value for
<your_profile_name>:Properties - Click the Test Connection button to verify the connection.
- Once the connection is successful, click Save.
- Prev topic: Advanced Configuration