/terraform

Primary LanguageHCLMIT LicenseMIT

terraform-vSphere

This repository is used to create VM's in vSphere from template

create terraform.tfvars using terraform.tfvars_example

Initialize terraform

  terraform init <path>/terraform/vsphere

Create VM from template using terraform apply

    terraform apply '-var-file=terraform.tfvars' -auto-approve <path>/terraform/vsphere

Delete the VM using terraform destroy

    terraform destroy '-var-file=terraform.tfvars' -auto-approve <path>/terraform/vsphere