awslabs / awslabs/aws-codedeploy-plugin
AWSCodeDeployPublisher fail 1 hour STS session
Open
- Dominant language
- Java
- Stars
- 156
- Forks
- 130
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
using AWSCodeDeployPublisher plugin for deployments that take more than 1 hour polling fail with STS token expiration
```
The security token included in the request is expired (Service: AmazonCodeDeploy; Status Code: 400; Error Code: ExpiredTokenException)
com.amazonaws.services.codedeploy.model.AmazonCodeDeployException: The security token included in the request is expired (Service: AmazonCodeDeploy; Status Code: 400; Error Code: ExpiredTokenException;
```
looking at the code seems that session duration (credsDuration) is forced to 3600s that goes against pollingTimeoutSec that doesn't have a limit.
Contributor guide
Assessment
This issue has not been assessed yet.