Deploy a Secure Device Connector to vSphere Using Terraform
Before you begin
This procedure details how you can use the Security Cloud Control SDC Terraform module for vSphere in conjunction with the Security Cloud Control Terraform Provider to deploy an SDC to your vSphere. Ensure you review the following prerequisites before attempting to perform this task procedure:
-
You have vSphere datacenter version 7 and above
-
You have an admin account on the datacenter with permissions to do the following:
-
Create VMs
-
Create folders
-
Create content libraries
-
Upload files to content libraries
-
-
Terraform knowledge
Procedure
Step 1 | Create an API-only user in Security Cloud Control and copy the API token. To know how to create an API-only user, see Create API Only Users. |
Step 2 | Configure the Security Cloud Control Terraform provider in your Terraform repository by following the instructions in Security Cloud Control Terraform Provider. Example:
|
Step 3 | Write Terraform code to create a Example:
The |
Step 4 | Write Terraform code to create the SDC in vSphere using Security Cloud Control_sdc Terraform module. Example:
Note that the VM created has two users—a |
Step 5 | Plan and apply your Terraform using See the Security Cloud Control Automation Repository in the CiscoDevNet for a complete example. |
If your SDC stays in the onboarding state, connect to the vSphere VM using remote console, log in as the CDO user, and execute the following command:
sdc host status
Depending on the readout, you may need to manually run:
sdc host configure
Note | The Security Cloud Control Terraform modules are published as Open Source Software under the Apache 2.0 license. You can file issues on GitHub if you require support. |