{"id":24056020,"url":"https://github.com/b-n/terraform-aws-s3-container-registry","last_synced_at":"2025-06-12T10:09:52.118Z","repository":{"id":243873848,"uuid":"616086850","full_name":"b-n/terraform-aws-s3-container-registry","owner":"b-n","description":"Create your own public docker v2 compliant container registry","archived":false,"fork":false,"pushed_at":"2023-04-01T12:47:34.000Z","size":30,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T11:30:55.615Z","etag":null,"topics":["container","container-registry","docker"],"latest_commit_sha":null,"homepage":"https://github.com/b-n/terraform-aws-s3-container-registry","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/b-n.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-19T15:19:14.000Z","updated_at":"2025-02-21T04:14:51.000Z","dependencies_parsed_at":"2024-06-11T19:02:41.129Z","dependency_job_id":"f3db07dc-1563-4d87-8cb4-5560654b3364","html_url":"https://github.com/b-n/terraform-aws-s3-container-registry","commit_stats":null,"previous_names":["b-n/terraform-aws-s3-container-registry"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/b-n/terraform-aws-s3-container-registry","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b-n%2Fterraform-aws-s3-container-registry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b-n%2Fterraform-aws-s3-container-registry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b-n%2Fterraform-aws-s3-container-registry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b-n%2Fterraform-aws-s3-container-registry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b-n","download_url":"https://codeload.github.com/b-n/terraform-aws-s3-container-registry/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b-n%2Fterraform-aws-s3-container-registry/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259444967,"owners_count":22858549,"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":["container","container-registry","docker"],"created_at":"2025-01-09T04:33:26.732Z","updated_at":"2025-06-12T10:09:52.090Z","avatar_url":"https://github.com/b-n.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform S3 Container Registry\n\nInspiration from https://httptoolkit.com/blog/docker-image-registry-facade/\n\nA statically hosted container registry that matches the is compliant to the\n[docker registry v2 API](https://docs.docker.com/registry/spec/api/).\n\n## Purpose\n\n`docker pull registry/image:tag` doesn't do anything particularly special when\npulling images. In fact, there are a couple of quirks when using the docker cli\nat least. Failure to specify a `registry` will default the registry to the one\nprovided by Docker Hub, which will subsequently require you to login.\n\nWhat if we could host our own registry instead of relying on Docker's free good\nwill? Well, that is what this terraform module is for.\n\nThis terraform module will:\n\n- Create a AWS s3 bucket to store your container images in.\n- Put a CloudFront distribution in front of it.\n- Put some CloudFront CloudFunctions in place to modify the request and response\n  to retrieve and return a resource that `docker` CLI can understand.\n- Create a s3 bucket for access logs to help in diagnosing any access problems.\n\n## Outputs\n\n- `cloudfront_distribution` - the terraformed CloudFront distribution (for\n  modifying any related settings)\n- `contianer_registry_bucket` - the terraformed bucket where the container blobs\n  and manifests are stored\n- `cloudfront_distribution_domain_name` - the domain name of the distribution\n  for easy checking after deployment\n\n## What this module does not do\n\nThis module does **not** help you with uploading blobs and manifests, and does\n**not** support `docker push`. See the [upload container\nexample](./example-upload-container/README.md) for inspiration.\n\n## Example usage of this module\n\nSee the [example](./example/README.md) for an example of using this module.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb-n%2Fterraform-aws-s3-container-registry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb-n%2Fterraform-aws-s3-container-registry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb-n%2Fterraform-aws-s3-container-registry/lists"}