This repository has been archived by the owner on Nov 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get AWS auth token for each ECR registry
Instead of asking for the AWS region and set of registry IDs (really account IDs), take these from the registry URLs as they come up. This means we have to make a token request for each region; so, keep track of the expiry, per region. And so we don't keep asking when there's a failure, embargo requests for a region (for ten minutes) whenever we fail to get a token.
- Loading branch information
Showing
2 changed files
with
105 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters