Terraform
The Terraform resource runs a Terraform configuration inside your lab sandbox. For the full field reference, see the Terraform Reference.
Creating a Terraform resource
Section titled “Creating a Terraform resource”Terraform resources can be created in the Sandbox tab. To create a new Terraform resource, navigate to the Sandbox tab and click the + button. Under General, select Terraform.
Start by naming the resource. Note that this is an internal name. Then point it at your Terraform source and configure any variables it needs.
Editing a Terraform resource
Section titled “Editing a Terraform resource”To edit a Terraform resource, select it from the list of existing sandboxes in the Sandbox tab. Make your changes in the configuration panel, then click Add changes to save your updates. See Editing & Publishing for how changes are reviewed and published.
Configuration
Section titled “Configuration”The resource’s Name (internal) is for internal reference and isn’t visible to learners. Configure:
- Source (required): the directory containing your Terraform configuration files.
- Version: the Terraform version to use.
- Working Directory: the working directory within the source.
- Variables: Terraform input variables.
- Environment: environment variables for the Terraform execution.
- Network: networks to attach the Terraform container to (ID, IP Address, Aliases).
- Volume: additional volumes to mount.
