This repository contains configuration that can be used within Terraform Cloud to test and validate Terraform Run Tasks. The configuration uses the random_pet resource to trigger a given action on the resource object.
Valid actions values for this config are:
- ["no-op"]
- ["create"]
- ["delete", "create"]
You can use this configuration by:
- Clone/Fork the repository
- Configure a new workspace:
- Connect to the correct Version Control Provider
- Choose the source repository
- Set the
Terraform Working Directory
Note:
Configuration of the Terraform working directory should be the only advanced option that needs to define. There are currently two options available:
- create - Resulting in a
["create"]
action on the first run, and["no-op"]
on subsequent runs. - update - Resulting in a
["create"]
action on the first run, and["delete", "create"]
on subsequent runs.