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:
- Prev topic: Advanced Configuration