{"id":31904202,"url":"https://github.com/cloudfoundry-community/terraform-aws-cf-net","last_synced_at":"2025-10-13T13:48:01.323Z","repository":{"id":24497202,"uuid":"27902337","full_name":"cloudfoundry-community/terraform-aws-cf-net","owner":"cloudfoundry-community","description":null,"archived":false,"fork":false,"pushed_at":"2016-05-11T20:58:38.000Z","size":36,"stargazers_count":9,"open_issues_count":0,"forks_count":25,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-04-14T22:47:44.353Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"leolux/bootstrap-css-without-fonts","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudfoundry-community.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2014-12-12T02:44:12.000Z","updated_at":"2024-02-09T14:24:15.000Z","dependencies_parsed_at":"2022-07-27T04:46:26.289Z","dependency_job_id":null,"html_url":"https://github.com/cloudfoundry-community/terraform-aws-cf-net","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cloudfoundry-community/terraform-aws-cf-net","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fterraform-aws-cf-net","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fterraform-aws-cf-net/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fterraform-aws-cf-net/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fterraform-aws-cf-net/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudfoundry-community","download_url":"https://codeload.github.com/cloudfoundry-community/terraform-aws-cf-net/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fterraform-aws-cf-net/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015340,"owners_count":26085686,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-10-13T13:47:54.824Z","updated_at":"2025-10-13T13:48:01.318Z","avatar_url":"https://github.com/cloudfoundry-community.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"terraform-aws-cf-net\n====================\n\nNOTE: **If you are looking to deploy Cloud Foundry into AWS VPC, visit https://github.com/cloudfoundry-community/terraform-aws-cf-install.**\n\nThis repository is a submodule of the project above that aims to create one click deploy for Cloud Foundry on AWS VPC. You *probably* don't want to use this repo directly.\n\nThis terraform module creates the networks and security groups that are needed to deploy CloudFoundry within an existing VPC (specifically, a VPC that was created using [https://github.com/cloudfoundry-community/terraform-aws-vpc], but any VPC will do).\n\nArchitecture\n------------\n\nWe use https://github.com/cloudfoundry-community/terraform-aws-vpc to create the VPC, bastion subnet, microbosh subnet, and NAT server. This repo is responsible for creating the loadbalancer and runtime subnets, security groups, and and the elastic IP that will be used by the Cloud Foundry API.\n\nThe idea is that you can use this terraform module multiple times, setting the`offset` variable differently each time, and you'll get a complete sett of the subnets, sgs, and EIPs necessary for a separate CF instance.\n\nCreate resources needed by Cloud Foundry\n----------------------------------------\n\n### Prerequisites\n\nThe one step that isn't automated is the creation of SSH keys. Waiting for feature to be added to terraform. An AWS SSH Key need to be created in desired region prior to running the following commands.\n\n**NOTE**: You **must** being using at least terraform 0.3.1 for the tags to work.\n\n### Running terraform\n\n```bash\nmkdir terraform-aws-cf\ncd terraform-aws-cf\nterraform apply github.com/cloudfoundry-community/terraform-aws-cf\n```\n\nSubnets\n-------\n\nSubnets created take the form of the `network` variable (for example, 10.10), appended with the `offset` variable (0 by default, can be anything up to 25), and then the rest of the CIDR. For example, with `network` as 10.10 and `offset` as 5, the runtime 2a subnet would be `10.10.53.0/24`. Note that there is a single bastion subnet and bosh subnet per VPC - there is no need to have multiple, no matter how many Cloud Foundry instances you're running. As such, they do not take the `offset` variable - they will always be X.X.0.0/24 and X.X.1.0/24 respectively.\n\n| Name         | CIDR        | Created By           |\n|--------------|-------------|----------------------|\n| Bastion      | X.X.0.0/24  | terraform-aws-vpc    |\n| Microbosh    | X.X.1.0/24  | terraform-aws-vpc    |\n| Loadbalancer | X.X.x2.0/24 | terraform-aws-cf-net |\n| Runtime 2a   | X.X.x3.0/24 | terraform-aws-cf-net |\n| Runtime 2b   | X.X.x4.0/24 | terraform-aws-cf-net |\n| Docker       | X.X.x5.0/24 | terraform-aws-cf-net |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudfoundry-community%2Fterraform-aws-cf-net","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudfoundry-community%2Fterraform-aws-cf-net","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudfoundry-community%2Fterraform-aws-cf-net/lists"}