hashicorp / hashicorp/tfc-workflows-github
Upload parent directory
- Dominant language
- HCL
- Stars
- 178
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to mimic the following behavior in Github actions to be able to use our local modules:
```
brownsville:genius-terraform$ terraform -chdir=staging plan
Running plan in Terraform Cloud. Output will stream here. Pressing Ctrl-C
will stop streaming the logs, but will not stop the plan running remotely.
Preparing the remote plan...
The remote workspace is configured to work with configuration at
staging relative to the target repository.
Terraform will upload the contents of the following directory,
excluding files or directories as defined by a .terraformignore file
at /Users/n/src/genius-terraform/.terraformignore (if it is present),
in order to capture the filesystem context the remote workspace expects:
/Users/n/src/genius-terraform
To view this run in a browser, visit:
https://app.terraform.io/app/MediaLab/genius-staging/runs/run-ZGWnBPvRDABbm4PC
Waiting for the plan to start...
Terraform v1.5.5
on linux_amd64
```
I do not see any way to accomplish this with the Github Actions workflow. Am I missing something? How would I upload a configuration version with a working directory of "staging" and a current directory of the repo root to TFC using this Github Action? Should I just set `directory: "."`?
Contributor guide
Assessment
This issue has not been assessed yet.