{"id":15350146,"url":"https://github.com/mars/terraform-heroku-aws-vpc","last_synced_at":"2026-02-04T01:03:11.273Z","repository":{"id":139298440,"uuid":"124306420","full_name":"mars/terraform-heroku-aws-vpc","owner":"mars","description":"AWS VPC ready for 🍐 Heroku Private Spaces","archived":false,"fork":false,"pushed_at":"2018-10-09T18:14:04.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T22:13:30.764Z","etag":null,"topics":["aws-vpc","heroku","terraform-module"],"latest_commit_sha":null,"homepage":null,"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/mars.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":"2018-03-07T23:20:26.000Z","updated_at":"2021-03-28T00:50:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"e37207fb-7c4c-44a7-9fe8-8a6b1b5e884a","html_url":"https://github.com/mars/terraform-heroku-aws-vpc","commit_stats":{"total_commits":11,"total_committers":2,"mean_commits":5.5,"dds":0.2727272727272727,"last_synced_commit":"fccf85df40abae7f79a92087e4897edeafe18198"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mars%2Fterraform-heroku-aws-vpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mars%2Fterraform-heroku-aws-vpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mars%2Fterraform-heroku-aws-vpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mars%2Fterraform-heroku-aws-vpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mars","download_url":"https://codeload.github.com/mars/terraform-heroku-aws-vpc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245907556,"owners_count":20691956,"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":["aws-vpc","heroku","terraform-module"],"created_at":"2024-10-01T11:57:43.684Z","updated_at":"2026-02-04T01:03:06.249Z","avatar_url":"https://github.com/mars.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"AWS VPC ready for 🍐 Heroku Private Spaces\n===========================================\n\n[![Terraform module](https://img.shields.io/badge/dynamic/json.svg?label=Terraform%20module\u0026url=https%3A%2F%2Fregistry.terraform.io%2Fv1%2Fmodules%2Fmars%2Faws-vpc%2Fheroku\u0026query=%24.version\u0026colorB=%235D54E1)](https://registry.terraform.io/modules/mars/aws-vpc/heroku)\n\nA [Terraform](https://www.terraform.io/) module providing:\n\n* [AWS VPC](https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Introduction.html) compatible with [Private Space Peering](https://devcenter.heroku.com/articles/private-space-peering)\n* Public \u0026 private subnets ([Scenario 2](https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Scenario2.html))\n* [Trustable static IP](https://devcenter.heroku.com/articles/private-spaces#trusted-ip-ranges) for outgoing traffic from private subnet \n* Each subnet internally peered with AWS S3\n\nUsage\n-----\n\n⏩ See also: [example config peering the VPC with a Private Space](https://github.com/mars/terraform-aws-vpc-peered).\n\n### Example apply\n\n```bash\ncd example/local-module/\nterraform init\nterraform apply \\\n  -var name=unique-identity \\\n  -var aws_access_key=xxxxx \\\n  -var aws_secret_key=yyyyy \\\n  -var aws_region=us-west-2\n```\n\n#### Example outputs\n\n`example/local-module/.env` file containing various values from the provisioned infrastructure:\n\n```\nAWS_VPC_REGION=xx-xxxx-x\nAWS_VPC_ID=vpc-xxxxxxxx\nAWS_VPC_CIDR=x.x.x.x/x\nAWS_VPC_PUBLIC_SUBNET_ID=subnet-xxxxxxxx\nAWS_VPC_PUBLIC_SUBNET_CIDR=x.x.x.x/x\nAWS_VPC_PRIVATE_SUBNET_ID=subnet-xxxxxxxx\nAWS_VPC_PRIVATE_SUBNET_CIDR=x.x.x.x/x\nAWS_VPC_PRIVATE_STATIC_OUTGOING_IP=x.x.x.x\n```\n\n### As a module\n\nInvoke this config from another config:\n\n```terraform\nprovider \"aws\" {\n  version    = \"~\u003e 1.10\"\n  access_key = \"${var.aws_access_key}\"\n  secret_key = \"${var.aws_secret_key}\"\n  region     = \"${var.aws_region}\"\n}\n\nprovider \"local\" {\n  version = \"~\u003e 1.1\"\n}\n\nmodule \"heroku_aws_vpc\" {\n  source  = \"mars/aws-vpc/heroku\"\n  version = \"~\u003e 1.0\"\n\n  providers = {\n    aws   = \"aws\"\n    local = \"local\"\n  }\n}\n```\n\n#### Module outputs\n\nSee [outputs.tf](outputs.tf).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmars%2Fterraform-heroku-aws-vpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmars%2Fterraform-heroku-aws-vpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmars%2Fterraform-heroku-aws-vpc/lists"}