{"id":49629951,"url":"https://github.com/terraform-module/terraform-aws-ecr","last_synced_at":"2026-05-05T10:02:11.083Z","repository":{"id":37932310,"uuid":"487747438","full_name":"terraform-module/terraform-aws-ecr","owner":"terraform-module","description":"ℹ️ Terraform module which creates AWS ECR resources.","archived":false,"fork":false,"pushed_at":"2025-06-11T04:34:26.000Z","size":100,"stargazers_count":4,"open_issues_count":0,"forks_count":4,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-11T16:09:31.605Z","etag":null,"topics":["aws","ecr","ivank","terraform","terraform-module"],"latest_commit_sha":null,"homepage":"https://ivankatliarchuk.github.io","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/terraform-module.png","metadata":{"funding":{"open_collective":null,"ko_fi":null,"github":["ivankatliarchuk"],"patreon":"cloudkats","otechie":"cloudkats","custom":"https://paypal.me/ivankatliarchuk","liberapay":"cloudkats","issuehunt":"ivankatliarchuk"},"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-05-02T07:00:34.000Z","updated_at":"2025-06-11T04:34:03.000Z","dependencies_parsed_at":"2024-05-09T05:29:30.621Z","dependency_job_id":"6d79219e-0ba3-408f-954f-2238accdd0ab","html_url":"https://github.com/terraform-module/terraform-aws-ecr","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":"terraform-module/terraform-module-blueprint","purl":"pkg:github/terraform-module/terraform-aws-ecr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-module%2Fterraform-aws-ecr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-module%2Fterraform-aws-ecr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-module%2Fterraform-aws-ecr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-module%2Fterraform-aws-ecr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terraform-module","download_url":"https://codeload.github.com/terraform-module/terraform-aws-ecr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-module%2Fterraform-aws-ecr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31947821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","ecr","ivank","terraform","terraform-module"],"created_at":"2026-05-05T10:02:05.857Z","updated_at":"2026-05-05T10:02:11.076Z","avatar_url":"https://github.com/terraform-module.png","language":"HCL","funding_links":["https://github.com/sponsors/ivankatliarchuk","https://patreon.com/cloudkats","https://otechie.com/cloudkats","https://paypal.me/ivankatliarchuk","https://liberapay.com/cloudkats","https://issuehunt.io/r/ivankatliarchuk"],"categories":[],"sub_categories":[],"readme":"# AWS ECR(s) Terraform module\n\nTerraform module which creates AWS ECR resources in bulk.\n\n\u003e Amazon Elastic Container Registry. Share and deploy container software, publicly or privately\n\n---\n\n![](https://github.com/terraform-aws-modules/terraform-aws-ecr/workflows/release/badge.svg)\n![](https://github.com/terraform-aws-modules/terraform-aws-ecr/workflows/commit-check/badge.svg)\n![](https://github.com/terraform-aws-modules/terraform-aws-ecr/workflows/labeler/badge.svg)\n\n[![](https://img.shields.io/github/license/terraform-aws-modules/terraform-aws-ecr)](https://github.com/terraform-aws-modules/terraform-aws-ecr)\n![](https://img.shields.io/github/v/tag/terraform-aws-modules/terraform-aws-ecr)\n![](https://img.shields.io/issues/github/terraform-aws-modules/terraform-aws-ecr)\n![](https://img.shields.io/github/issues/terraform-aws-modules/terraform-aws-ecr)\n![](https://img.shields.io/github/issues-closed/terraform-aws-modules/terraform-aws-ecr)\n[![](https://img.shields.io/github/languages/code-size/terraform-aws-modules/terraform-aws-ecr)](https://github.com/terraform-aws-modules/terraform-aws-ecr)\n[![](https://img.shields.io/github/repo-size/terraform-aws-modules/terraform-aws-ecr)](https://github.com/terraform-aws-modules/terraform-aws-ecr)\n![](https://img.shields.io/github/languages/top/terraform-aws-modules/terraform-aws-ecr?color=green\u0026logo=terraform\u0026logoColor=blue)\n![](https://img.shields.io/github/commit-activity/m/terraform-aws-modules/terraform-aws-ecr)\n![](https://img.shields.io/github/contributors/terraform-aws-modules/terraform-aws-ecr)\n![](https://img.shields.io/github/last-commit/terraform-aws-modules/terraform-aws-ecr)\n[![Maintenance](https://img.shields.io/badge/Maintenu%3F-oui-green.svg)](https://GitHub.com/terraform-aws-modules/terraform-aws-ecr/graphs/commit-activity)\n[![GitHub forks](https://img.shields.io/github/forks/terraform-aws-modules/terraform-aws-ecr.svg?style=social\u0026label=Fork)](https://github.com/terraform-aws-modules/terraform-aws-ecr)\n\n---\n\n## Documentation\n\n- [TFLint Rules](https://github.com/terraform-linters/tflint/tree/master/docs/rules)\n\n## Usage example\n\nIMPORTANT: The master branch is used in source just as an example. In your code, do not pin to master because there may be breaking changes between releases. Instead pin to the release tag (e.g. ?ref=tags/x.y.z) of one of our [latest releases](https://github.com/terraform-aws-modules/terraform-aws-ecr/releases).\n\nSee `examples` directory for working examples to reference:\n\n```hcl\nmodule \"blueprint\" {\n  source  = \"terraform-module/ecr/aws\"\n  version = \"~\u003e 1.0\"\n\n  ecrs = {\n    api = {\n      tags = { application-name = \"api\" }\n      lifecycle_policy = {\n        rules = [{\n          rulePriority = 1\n          description  = \"keep last 50 images\"\n          action = {\n            type = \"expire\"\n          }\n          selection = {\n            tagStatus   = \"any\"\n            countType   = \"imageCountMoreThan\"\n            countNumber = 50\n          }\n        }]\n      }\n    }\n  }\n}\n```\n\nPush docker image to repository\n\n```sh\nexport ECR_REPO=AWS_ACCOUNT_ID.dkr.ecr.\u003cREGION\u003e.amazonaws.com/repositoryName\naws ecr get-login-password --region \u003cREGION\u003e | docker login --username AWS --password-stdin $ECR_REPO\ndocker pull cloudkats/hello-world-rest:latest\ndocker tag cloudkats/hello-world-rest:latest $ECR_REPO/api:latest\ndocker push $ECR_REPO/api:latest\n```\n\n## Examples\n\nSee `examples` directory for working examples to reference\n\n- [Examples Dir](https://github.com/terraform-module/module-blueprint/tree/master/examples/)\n\n## Assumptions\n\n## Available features\n\n- Create multiple ECR repositories\n- Manages an ECR repository lifecycle policy.\n\n\u003c!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n## Requirements\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"requirement_terraform\"\u003e\u003c/a\u003e [terraform](#requirement\\_terraform) | \u003e= 1 |\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_aws\"\u003e\u003c/a\u003e [aws](#provider\\_aws) | n/a |\n\n## Modules\n\nNo modules.\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [aws_ecr_lifecycle_policy.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecr_lifecycle_policy) | resource |\n| [aws_ecr_repository.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecr_repository) | resource |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_ecrs\"\u003e\u003c/a\u003e [ecrs](#input\\_ecrs) | Map of ECRs to create. | `any` | `{}` | no |\n| \u003ca name=\"input_tags\"\u003e\u003c/a\u003e [tags](#input\\_tags) | A mapping of tags to assign to all resources | `map(string)` | `{}` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_repositories\"\u003e\u003c/a\u003e [repositories](#output\\_repositories) | Provides an Elastic Container Registry Repositories. |\n| \u003ca name=\"output_urls\"\u003e\u003c/a\u003e [urls](#output\\_urls) | The URL of the repository (in the form aws\\_account\\_id.dkr.ecr.region.amazonaws.com/repositoryName). |\n\u003c!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n\n\n### :memo: Guidelines\n\n - :memo: Use a succinct title and description.\n - :bug: Bugs \u0026 feature requests can be be opened\n - :signal_strength: Support questions are better asked on [Stack Overflow](https://stackoverflow.com/)\n - :blush: Be nice, civil and polite ([as always](http://contributor-covenant.org/version/1/4/)).\n\n## License\n\nCopyright 2019 Ivan Katliarhcuk\n\nMIT Licensed. See [LICENSE](./LICENSE) for full details.\n\n## How to Contribute\n\nSubmit a pull request\n\n# Authors\n\nCurrently maintained by [Ivan Katliarchuk](https://github.com/ivankatliarchuk) and these [awesome contributors](https://github.com/terraform-aws-modules/terraform-aws-ecr/graphs/contributors).\n\n[![ForTheBadge uses-git](http://ForTheBadge.com/images/badges/uses-git.svg)](https://GitHub.com/)\n\n## Terraform Registry\n\n- [Module](https://registry.terraform.io/modules/terraform-module/ecrs/aws)\n\n## Resources\n\n- [Terraform modules](https://registry.terraform.io/namespaces/terraform-module)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterraform-module%2Fterraform-aws-ecr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterraform-module%2Fterraform-aws-ecr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterraform-module%2Fterraform-aws-ecr/lists"}