{"id":34842331,"url":"https://github.com/serialt/tf-mirror","last_synced_at":"2026-05-16T16:01:51.590Z","repository":{"id":233974886,"uuid":"774390723","full_name":"serialt/tf-mirror","owner":"serialt","description":"terraform mirror","archived":false,"fork":false,"pushed_at":"2024-08-11T04:56:40.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-27T02:20:42.697Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/serialt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-03-19T13:20:49.000Z","updated_at":"2024-08-11T04:56:43.000Z","dependencies_parsed_at":"2024-04-17T21:19:12.312Z","dependency_job_id":"06173b7b-f3bf-4dc1-bea2-a8223f16ec76","html_url":"https://github.com/serialt/tf-mirror","commit_stats":null,"previous_names":["serialt/tf-mirror"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/serialt/tf-mirror","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serialt%2Ftf-mirror","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serialt%2Ftf-mirror/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serialt%2Ftf-mirror/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serialt%2Ftf-mirror/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serialt","download_url":"https://codeload.github.com/serialt/tf-mirror/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serialt%2Ftf-mirror/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33109461,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2025-12-25T17:13:37.452Z","updated_at":"2026-05-16T16:01:51.578Z","avatar_url":"https://github.com/serialt.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n# Terraform Registry Mirror\n\nA set of scripts to create a mirror of terraform providers to work without official `registry.terraform.io`.\n\nMay be extremely useful for software engineers who work from Russian Federation or Republic of Belarus \nand being banned by [https://www.hashicorp.com/](HashiCorp).\n\n```\n bin/ -\n   |- core.sh\n   |- mirror.sh\n   |- updater.sh \n```\n\n `core.sh` - will download `terraform` binaries of specified platforms and placed to `mirror` directory.\n\n  e.g.\n\n    bin/core.sh terraform.json\n\n\n `mirror.sh` - will download `terraform providers` of specified platforms and versions and placed them to the `mirror` directory.\n \n  e.g.\n  \n    bin/mirror.sh providers/aws.json\n\n  \n  `updater.sh` - will check new versions and add them the to providers file.\n  \n  e.g\n  \n    bin/updater.sh providers/aws.json\n\n  Provider file has following format:\n\n```json\n{\n  \"provider\": {\n    \"namespace\": \"hashicorp\",\n    \"name\": \"aws\",\n    \"versions\": [\n      \"3.11.0\",\n      \"3.12.0\"\n    ]\n  }\n}\n```\n\n  See more example in `providers` directory.\n\n## Github actions\n\n - `updater.yaml` - will run `updater.sh` on all listed provider files and commit changes to the repository. Should be run manually.\n\n - `mirror.yaml`  - will run `core.sh` and `mirror.sh` on all listed provider files, prepare terraform mirror and deploy the to s3 bucket.\n    Triggered by commit to `master` branch.\n\n    Github secrets needed for deploying:\n   \n      - AWS_REGION\n      - AWS_ACCESS_KEY\n      - AWS_SECRET_KEY\n      - S3_BUCKET_NAME\n    \n    Please fill free to rewrite `Deploy mirror to s3 bucket` step if you need to upload terraform mirror to smth else.\n\n\n## Mirroring preparation\n\n - Create s3 bucket with public access and acl on.\n - Create CloudFront pointed to this bucket and provide ssl certificate (use AWS Certificate Manager or its own). \n   Terraform requires `https` address protocol.\n - Create CNAME dns record pointed to CloudFront address.\n\n## Usage\n\nCreate `~/.terraformrc` file with the following content\n\n```\nprovider_installation {\n  network_mirror {\n    url = \"\u003chttps address of your mirror\u003e\"\n  }\n}\n```\n\n## Testing\n\nGo to `example` directory and try\n\n    terraform init\n\nIf terraform mirror has been created successfully, terraform will initialize sample project.\n\n\n-------------------\n\nInspired by [https://github.com/straubt1/terraform-network-mirror](https://github.com/straubt1/terraform-network-mirrorhttps://github.com/straubt1/terraform-network-mirror).\n\n\n      ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserialt%2Ftf-mirror","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserialt%2Ftf-mirror","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserialt%2Ftf-mirror/lists"}