Awesome Open Source
Awesome Open Source

Deploying GCP VMs located in a private subnet, inside a managed instance group, with a load balancer and autoscaling using Terraform

The script will deploy a load balancer with autoscaling and deploy Ubuntu server with Apache in private subnet, without public ip, inside an managed instance group, using Terraform.

lb-managed.tf --> Create managed instance group, backend services and all components required by the load balancer

lb-managed-variables.tf --> Load balancer variables

network-firewall.tf --> Configure basic firewall for the network

network-variables.tf --> Define network variables

network.tf --> Define network, vpc, subnet, icmp firewall

provider.tf --> Configure Google Cloud provider

terraform.tfvars --> Defining variables

variables-auth.tf --> Application and authentication variables

vm-output.tf --> Output of VMs

vm.tf --> Template to create a Ubuntu VM with Apache web server

Notes

Check list of Google Cloud OS images --> https://cloud.google.com/compute/docs/images

Create the Json file for authentication --> https://cloud.google.com/iam/docs/creating-managing-service-account-keys

Read the post for the repo --> https://medium.com/@gmusumeci/getting-started-with-terraform-and-google-cloud-platform-gcp-deploying-vms-in-a-private-only-f8b5ce7858d8


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Hcl (12,785
Gcp (1,241
Virtual Machine (1,064
Google Cloud (1,035
Google Cloud Platform (827
Infrastructure As Code (646
Firewall (622
Load Balancer (478
Related Projects