https://github.com/nutanixdev/terraform_blog
Nutanix Terraform Provider Examples
https://github.com/nutanixdev/terraform_blog
ahv automation iac nutanix nutanix-terraform-provider terraform terraform-provider virtual-machine
Last synced: 6 months ago
JSON representation
Nutanix Terraform Provider Examples
- Host: GitHub
- URL: https://github.com/nutanixdev/terraform_blog
- Owner: nutanixdev
- Created: 2021-04-16T01:13:12.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-06-18T10:49:37.000Z (over 3 years ago)
- Last Synced: 2025-03-29T05:23:54.553Z (11 months ago)
- Topics: ahv, automation, iac, nutanix, nutanix-terraform-provider, terraform, terraform-provider, virtual-machine
- Language: HCL
- Homepage: https://www.nutanix.dev/2021/04/20/using-the-nutanix-terraform-provider/
- Size: 12.7 KB
- Stars: 11
- Watchers: 4
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Terraform Examples with the Nutanix Terraform Provider
The [Terraform](https://www.terraform.io/) configurations in this repository demonstrate how to use the [Nutanix Terraform provider](https://registry.terraform.io/providers/nutanix/nutanix/latest).
Main concepts covered in the [intro/](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](https://www.nutanix.dev/2021/04/20/using-the-nutanix-terraform-provider/) and [video](https://www.nutanix.dev/videos/what-is-hci-for-devs-part-5-nutanix-terraform-provider/) for a guided walk-through!
## Usage
- Clone this repository to your local system:
```shell
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:
```shell
terraform init
terraform validate
terraform plan
terraform apply
# terraform destroy # optional, when finished
```
## Disclaimer
Please see the [.disclaimer](intro/.disclaimer) file distributed with this repository.