Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
control-service: force aws cred provider refresh (#2879)
what: Forced the AWS credentials service to refresh credentials before passing them to the data job builder task. why: Users of the control-service noticed that the job builder task would occasionally fail with 401 unauthorized when attempting to push images to aws ecr repository. Since some builders take longer to build the images, it is possible that a passed valid credential expired during build. As per the aws documentation: "This credentials provider uses a background thread to refresh credentials." though it is unclear when credentials are rotated. Note this behaviour of the provider was changed in a aws update, previously the credentials were generated before every request. testing: existing tests should cover this. Signed-off-by: mrMoZ1 <[email protected]>
- Loading branch information