Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 1.14 KB

readme.md

File metadata and controls

24 lines (17 loc) · 1.14 KB

Terraform Run Tasks Testing Configuration

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"]

Usage/Action

You can use this configuration by:

  1. Clone/Fork the repository
  2. 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.