Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -391,18 +391,6 @@ The following minimum permissions are required for pushing an image to an ECR Pu

## Troubleshooting

### Configure credentials

`Inaccessible host: 'api.ecr-public.aws-region-1.amazonaws.com' at port 'undefined'. This service may not be available in the 'aws-region-1' region.`

- The `AWS_DEFAULT_REGION` environment variable is configured as a region where ECR Public isn't available.
- ECR Public can only be logged into from the `us-east-1` region. In the `aws-actions/configure-aws-credentials` action, the `aws-region` input must be `us-east-1`.

`GetAuthorizationToken command is only supported in us-east-1.`

- The `AWS_DEFAULT_REGION` environment variable is configured as `us-west-2`.
- ECR Public can only be logged into from the `us-east-1` region. In the `aws-actions/configure-aws-credentials` action, the `aws-region` input must be `us-east-1`.

### Inputs

`Invalid parameter at 'registryIds' failed to satisfy constraint: 'Member must satisfy constraint: [Member must satisfy regular expression pattern: [0-9]{12}]'`
Expand Down
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ async function getEcrAuthTokenWrapper(authTokenRequest, httpsProxyAgent) {
async function getEcrPublicAuthTokenWrapper(authTokenRequest, httpsProxyAgent) {
const ecrPublicClient = new ECRPUBLICClient({
customUserAgent: ECR_LOGIN_GITHUB_ACTION_USER_AGENT,
// Authenticating to ECR Public auth only works in us-east-1
region: "us-east-1",
requestHandler: new NodeHttpHandler({
httpAgent: httpsProxyAgent,
httpsAgent: httpsProxyAgent
Expand Down