awslabs / aws-codedeploy-plugin

Jenkins plugin for AWS CodeDeploy
Apache License 2.0
153 stars 131 forks source link

AWSCodeDeployPublisher fail 1 hour STS session #111

Open P00L opened 3 years ago

P00L commented 3 years ago

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.