Skip to content

KopiCloud/terraform-gcp-ubuntu-vm

Repository files navigation

Deploy an Ubuntu VM Instance in GCP with Terraform

The script will install Apache web server on the virtual machines for testing purposes.

  • app-variables.tf --> Application variables

  • linux-vm-main.tf --> Create an Ubuntu VM with Apache using Terraform

  • linux-vm-output.tf --> VM Output

  • linux-vm-variables.tf --> VM Variables

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

  • network-main.tf --> Define network, vpc, subnet

  • network-variables.tf --> Network variables

  • provider-main.tf --> Configure Terraform and Google Cloud providers

  • provider-variables --> Authentication variables

  • terraform.tfvars --> Defining variables

  • ubuntu-versions.tf --> Ubuntu Versions

Notes

Create the .JSON file for authentication --> https://gmusumeci.medium.com/how-to-create-a-service-account-for-terraform-in-gcp-google-cloud-platform-f75a0cf918d1

Blog --> https://gmusumeci.medium.com/how-to-deploy-an-ubuntu-linux-vm-instance-in-gcp-using-terraform-b94d0ed3a3a4

Releases

No releases published

Packages

No packages published

Languages