hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.73k stars 9.09k forks source link

[New Resource]: ECR Repository Creation Template #34503

Closed davidnortonjr closed 1 month ago

davidnortonjr commented 9 months ago

Description

When the API is available, please support the new configuration for repositories that are auto-created via pull-through cache rules.

Requested Resource(s) and/or Data Source(s)

Potential Terraform Configuration

resource "aws_ecr_repository_creation_template" "template" {
  prefix = "quay"
  description = "default settings for quay.io"
  image_tag_mutability = "IMMUTABLE"
  encryption_configuration = {
    encryption_type = "KMS"
    kms_key = "(arn)"
  }
  policy = "(json)"
  lifecycle_policy = "(json)"
  tags = {
    Foo = "bar"
  }
}

References

Would you like to implement a fix?

None

github-actions[bot] commented 9 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

weijiany commented 4 months ago

Do we have some updates about this feature? Or we will wait until the AWS ECR Repository Creation Template become stable. 🤔

shrutichaudhary17 commented 4 months ago

Is there any update on this feature?

mohamed-haidara-cko commented 4 months ago

The API cannot be used at the moment to create the templates since the feature is still in preview: https://docs.aws.amazon.com/AmazonECR/latest/userguide/repository-creation-templates.html?icmpid=docs_ecr_hp-registry-private

Screenshot 2024-04-17 at 13 14 26

sasidhar-aws commented 3 months ago

I will be working on this issue.

iarc13 commented 2 months ago

Thanks @sasidhar-aws ! Please keep us updated!

shrutichaudhary17 commented 2 months ago

Hi @sasidhar-aws , any tentative timeline when the feature would become stable ? We are waiting for repository creation template feature do a production roll-out for ECR pull cache.

weijiany commented 1 month ago

Yesterday AWS announced this feature is GA. Exciting 🎉 🎉 🎉

bodgit commented 1 month ago

I've created a PR #38597 that implements this new resource. Please try it out.

github-actions[bot] commented 1 month ago

[!WARNING] This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them.

Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.

github-actions[bot] commented 1 month ago

This functionality has been released in v5.61.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. Thank you!

github-actions[bot] commented 6 days 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.