diff --git a/README.md b/README.md index 4923170d..e8a6dc9f 100644 --- a/README.md +++ b/README.md @@ -166,6 +166,37 @@ to `true`, the following outputs is available for subsequent steps that call the - `exitcode` - The exit code of the call to the `terraform` binary. +## Examples + +### Passing variables to Terraform + +Since Terraform cloud does not support run variables at this time. +Currently the only to way to pass variables is by creating a `*.auto.tfvars` variables file. + +In this example, we will create a `pipeline.auto.tfvars` file and append all of the variables which we need to pass on to Terraform. + +Add the following step in your workflow file + +```yaml + - name: Setup Terraform variables + working-directory: ./terraform + id: vars + run: |- + cat > pipeline.auto.tfvars <