The Terraform configurations in this repository demonstrate how to use the Nutanix Terraform provider.
Main concepts covered in the intro/ directory:
- Adding
nutanix
as a required provider - Creating a Nutanix AHV image that can be used as the base disk for a Nutanix AHV-hosted virtual machine
- Specification of a Nutanix AHV-hosted virtual machine, including custom virtual resource spec (vCPU, vRAM, storage, networking)
- Using Terraform variables to specify Nutanix Prism Central connection parameters:
- Prism Central endpoint/IP address
- Credentials
- Cluster name for virtual machine deployment
- Subnet name for new virtual machine network connection
- Please see the related Nutanix.dev blog and video for a guided walk-through!
-
Clone this repository to your local system:
git clone https://github.com/nutanixdev/terraform_blog.git
-
Change to the subdirectory and edit the
terraform.tfvars
variables for your environment -
Initialise, plan, and apply the Terraform configuration. For example:
terraform init terraform validate terraform plan terraform apply # terraform destroy # optional, when finished
Please see the .disclaimer file distributed with this repository.