{"id":19107227,"url":"https://github.com/govtechsg/terraform-aws-ecr","last_synced_at":"2025-04-18T21:32:01.893Z","repository":{"id":39613942,"uuid":"378066253","full_name":"GovTechSG/terraform-aws-ecr","owner":"GovTechSG","description":"AWS ECR Module","archived":false,"fork":false,"pushed_at":"2022-05-31T03:29:13.000Z","size":24,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":60,"default_branch":"master","last_synced_at":"2024-04-14T23:19:53.835Z","etag":null,"topics":["ace"],"latest_commit_sha":null,"homepage":"","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/GovTechSG.png","metadata":{"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}},"created_at":"2021-06-18T07:14:47.000Z","updated_at":"2022-05-27T07:40:24.000Z","dependencies_parsed_at":"2022-09-15T21:41:42.533Z","dependency_job_id":null,"html_url":"https://github.com/GovTechSG/terraform-aws-ecr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GovTechSG%2Fterraform-aws-ecr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GovTechSG%2Fterraform-aws-ecr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GovTechSG%2Fterraform-aws-ecr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GovTechSG%2Fterraform-aws-ecr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GovTechSG","download_url":"https://codeload.github.com/GovTechSG/terraform-aws-ecr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223783173,"owners_count":17201915,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["ace"],"created_at":"2024-11-09T04:11:42.447Z","updated_at":"2024-11-09T04:11:43.075Z","avatar_url":"https://github.com/GovTechSG.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform-aws-ecr\n\nThis module creates an private ECR\n\n## Usage\n\n```hcl\nmodule \"test\" {\n  source = \"../../\"\n  repo_names = {\n    \"my-repo\" : \"my-repo\",\n  }\n  image_tag_mutability = \"IMMUTABLE\"\n\n  allowed_account_arns = {\n    \"my-account\" : \"\\\"arn:aws:iam::123456789:root\\\"\",\n  }\n}\n```\n\n\n## Requirements\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"requirement_terraform\"\u003e\u003c/a\u003e [terraform](#requirement\\_terraform) | \u003e= 0.13 |\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_aws\"\u003e\u003c/a\u003e [aws](#provider\\_aws) | n/a |\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [aws_ecr_lifecycle_policy.lifecycle](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecr_lifecycle_policy) | resource |\n| [aws_ecr_repository.repo](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecr_repository) | resource |\n| [aws_ecr_repository_policy.policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecr_repository_policy) | resource |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_allowed_account_arns\"\u003e\u003c/a\u003e [allowed\\_account\\_arns](#input\\_allowed\\_account\\_arns) | Map of account IDs with permission to ECR repos | `map(string)` | n/a | yes |\n| \u003ca name=\"input_image_tag_mutability\"\u003e\u003c/a\u003e [image\\_tag\\_mutability](#input\\_image\\_tag\\_mutability) | Whether image tags can be mutated or not | `string` | `\"IMMUTABLE\"` | no |\n| \u003ca name=\"input_max_days_for_untagged_images\"\u003e\u003c/a\u003e [max\\_days\\_for\\_untagged\\_images](#input\\_max\\_days\\_for\\_untagged\\_images) | Maximum days to keep untagged images in repository | `number` | `14` | no |\n| \u003ca name=\"input_project_tags\"\u003e\u003c/a\u003e [project\\_tags](#input\\_project\\_tags) | Tagging of ECR repository | `map(string)` | \u003cpre\u003e{\u003cbr\u003e  \"Terraform\": \"True\"\u003cbr\u003e}\u003c/pre\u003e | no |\n| \u003ca name=\"input_repo_names\"\u003e\u003c/a\u003e [repo\\_names](#input\\_repo\\_names) | Name of ECR repository | `map(string)` | n/a | yes |\n| \u003ca name=\"input_scan_on_push\"\u003e\u003c/a\u003e [scan\\_on\\_push](#input\\_scan\\_on\\_push) | Scan container images on push | `bool` | `true` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_ecr\"\u003e\u003c/a\u003e [ecr](#output\\_ecr) | ECR repository name |\n\n\u003c!-- BEGIN_TF_DOCS --\u003e\n## Requirements\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"requirement_terraform\"\u003e\u003c/a\u003e [terraform](#requirement\\_terraform) | \u003e= 0.13 |\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.lifecycle](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecr_lifecycle_policy) | resource |\n| [aws_ecr_pull_through_cache_rule.main](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecr_pull_through_cache_rule) | resource |\n| [aws_ecr_repository.repo](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecr_repository) | resource |\n| [aws_ecr_repository_policy.policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecr_repository_policy) | resource |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_allowed_account_arns\"\u003e\u003c/a\u003e [allowed\\_account\\_arns](#input\\_allowed\\_account\\_arns) | Map of account IDs with permission to ECR repos | `map(string)` | n/a | yes |\n| \u003ca name=\"input_image_tag_mutability\"\u003e\u003c/a\u003e [image\\_tag\\_mutability](#input\\_image\\_tag\\_mutability) | Whether image tags can be mutated or not | `string` | `\"IMMUTABLE\"` | no |\n| \u003ca name=\"input_max_days_for_untagged_images\"\u003e\u003c/a\u003e [max\\_days\\_for\\_untagged\\_images](#input\\_max\\_days\\_for\\_untagged\\_images) | Maximum days to keep untagged images in repository | `number` | `14` | no |\n| \u003ca name=\"input_project_tags\"\u003e\u003c/a\u003e [project\\_tags](#input\\_project\\_tags) | Tagging of ECR repository | `map(string)` | \u003cpre\u003e{\u003cbr\u003e  \"Terraform\": \"True\"\u003cbr\u003e}\u003c/pre\u003e | no |\n| \u003ca name=\"input_pull_through_cache_rules\"\u003e\u003c/a\u003e [pull\\_through\\_cache\\_rules](#input\\_pull\\_through\\_cache\\_rules) | Use a prefix to pull through from a 3rd party upstream registry. | `map(map(string))` | n/a | yes |\n| \u003ca name=\"input_repo_names\"\u003e\u003c/a\u003e [repo\\_names](#input\\_repo\\_names) | Name of ECR repository | `map(string)` | n/a | yes |\n| \u003ca name=\"input_scan_on_push\"\u003e\u003c/a\u003e [scan\\_on\\_push](#input\\_scan\\_on\\_push) | Scan container images on push | `bool` | `true` | no |\n| \u003ca name=\"input_tags\"\u003e\u003c/a\u003e [tags](#input\\_tags) | n/a | `map(string)` | `{}` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_ecr\"\u003e\u003c/a\u003e [ecr](#output\\_ecr) | ECR repository name |\n\u003c!-- END_TF_DOCS --\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgovtechsg%2Fterraform-aws-ecr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgovtechsg%2Fterraform-aws-ecr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgovtechsg%2Fterraform-aws-ecr/lists"}