You probably are aware of the VMware has a HashiCorp Terraform provider. which we can be used to configure our vRealize Automation (vRA) infrastructure as well requesting deployments. In this blog I am going to cover, how to configure cloud account for Vsphere .
In upcoming blog, I will cover how to configure below resource using Terraform .
Cloud account for AWS,
Cloud account for Azure
Cloud account for google.
Create a vRA Cloud Account for Vsphere :-
I have created a folder to hold my Terraform configuration files:
⦁ main.tf – this is my main terraform file in which I am describing the desired state of my environment
⦁ terraform.tfvars – used for setting variable values
⦁ variables.tf – used for declaring variables
The provider is initialized and is ready to start configuring vRealize Automation!
Now we can see at first glance what this will going to create a new Cloud Account named “tf-vsphere-account”, using the variables declared in variables.tf. Executing terraform plan will describe what will happen if we run the code:
Once you run the “terraform plan” and confirm everything looks correct then after run “terraform apply” to create resource (Cloud account for Vsphere).
When command has been finished successfully without error, then you will see new Cloud account for Vsphere in vRA with the properties configured as we set in the “Main.tf” file.