hashicorp / hashicorp/tfc-workflows-github
Upload parent directory
- Lingua principale
- HCL
- Stelle
- 178
- Fork
- 30
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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: "."`?
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia leggendo gli input del workflow GitHub Actions relativi alla versione di configurazione di Terraform Cloud, in particolare l'impostazione `directory` e la directory di lavoro `staging` richiesta. Riproduci il workflow usando la radice del repository come contesto di upload e `staging` come directory di lavoro; il lavoro è completato quando i moduli locali al di fuori di `staging` sono disponibili per il piano remoto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- github-actions, terraform
- Ambito
- cloud, devops
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100