awslabs / awslabs/aws-codedeploy-plugin

AWSCodeDeployPublisher fail 1 hour STS session

Open
#111 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.