Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECR cross region image replication #16668

Closed
ewbankkit opened this issue Dec 9, 2020 · 6 comments
Closed

ECR cross region image replication #16668

ewbankkit opened this issue Dec 9, 2020 · 6 comments
Labels
enhancement Requests to existing resources that expand the functionality or scope. new-resource Introduces a new resource. service/ecr Issues and PRs that pertain to the ecr service.
Milestone

Comments

@ewbankkit
Copy link
Contributor

ewbankkit commented Dec 9, 2020

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

Amazon Elastic Container Registry (Amazon ECR) now supports cross region replication of images in private repositories

New or Affected Resource(s)

  • aws_ecr_registry_policy
  • aws_ecr_replication_configuration

Potential Terraform Configuration

resource "aws_ecr_registry_policy" "example" {
  policy = <<EOF
{
...
}
EOF
}

resource "aws_ecr_replication_configuration" "example" {
  replication_configuration {
    rule {
      destination {
        region      = "eu-central-1"
        registry_id = "123456789012"
      }
    }
  }
}

References

Announcement.
Blog post.
User Guide.

Requires AWS SDK v1.36.4:

@ewbankkit ewbankkit added enhancement Requests to existing resources that expand the functionality or scope. service/ecs Issues and PRs that pertain to the ecs service. labels Dec 9, 2020
@ghost ghost added the service/ecr Issues and PRs that pertain to the ecr service. label Dec 9, 2020
@ewbankkit ewbankkit added service/ecr Issues and PRs that pertain to the ecr service. and removed service/ecr Issues and PRs that pertain to the ecr service. service/ecs Issues and PRs that pertain to the ecs service. labels Dec 9, 2020
@DrFaust92 DrFaust92 added the new-resource Introduces a new resource. label Dec 9, 2020
@DenisBY
Copy link

DenisBY commented Dec 15, 2020

It seems it's not possible to define replication per repository, only per whole ECR for all repositories in it.

@groodt
Copy link

groodt commented Dec 17, 2020

Yes, it seems like it applies at the registry level, not the repository level. That's fine though I think.

@marcuz
Copy link

marcuz commented Mar 22, 2021

Any ETA on when #16831 and #16853 will be merged and released? 🙌

@gdavison gdavison added this to the v3.36.0 milestone Apr 6, 2021
@gdavison
Copy link
Contributor

gdavison commented Apr 6, 2021

The linked PRs #16831 and #16853 have beed merged

@gdavison gdavison closed this as completed Apr 6, 2021
@ghost
Copy link

ghost commented Apr 9, 2021

This has been released in version 3.36.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented May 6, 2021

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators May 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. new-resource Introduces a new resource. service/ecr Issues and PRs that pertain to the ecr service.
Projects
None yet
Development

No branches or pull requests

6 participants