terraform-aws-modules / terraform-aws-ecr

Terraform module to create AWS ECR resources πŸ‡ΊπŸ‡¦
https://registry.terraform.io/modules/terraform-aws-modules/ecr/aws
Apache License 2.0
52 stars 109 forks source link

Error: creating ECR Public repository: RequestError: send request failed #18

Closed hrnn closed 10 months ago

hrnn commented 12 months ago

Description

Creating resources against us-east-2 fails with the following log.

β”‚ Error: creating ECR Public repository: RequestError: send request failed
β”‚ caused by: Post "https://api.ecr-public.us-east-2.amazonaws.com/": dial tcp: lookup api.ecr-public.us-east-2.amazonaws.com on 10.2.0.2:53: no such host

Versions

Reproduction Code [Required]

provider "aws" {
  region = "us-east-2"
}

module "public_ecr" {
  source = "terraform-aws-modules/ecr/aws"

  repository_name = "public-image"
  repository_type = "public"

  public_repository_catalog_data = {
    description       = "public docker image"
    operating_systems = ["Linux"]
    architectures     = ["x86"]
  }
}
johnbarney commented 11 months ago

Ran into this too. Public ECR is only in us-east-1 and us-west-2.

https://docs.aws.amazon.com/general/latest/gr/ecr-public.html

github-actions[bot] commented 9 months ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.