Skip to content

Terraform template to create vm network and firewall in gcp

Notifications You must be signed in to change notification settings

shamimgeek/Terraform-with-GCP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform-with-GCP

Requirement:

  • terrform version : v0.12.23
  • Service-Account on gcp
  • Projectid on gcp
  • SSH public key
  • service-account.json file

How to use

terraform init
terraform plan
terraform apply

SSH to VM:

ssh -i /home/sakhtar/.ssh/id_rsa.pub `terraform output ip`

Test the application

curl http://<IP of your VM>
Hello from Google Cloud !!!

Destroy:

terraform destroy

About

Terraform template to create vm network and firewall in gcp

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published