wait for a TFE run to complete
Project description
tfe-run-wait
Command line utility to poll for a Terraform Enterprise run state change and apply a planned run.
Usage
tfe-run-wait [-h] \
--token TOKEN \
--organization ORGANIZATION \
--workspace WORKSPACE \
--clone-url CLONE\_URL \
--commit-sha COMMIT\_SHA \
[--wait-for-status WAIT\_FOR\_STATUS] \
[--maximum-wait-time MAXIMUM\_WAIT\_TIME]
tfe-run-apply [-h] \
--token TOKEN \
--organization ORGANIZATION \
--workspace WORKSPACE \
--clone-url CLONE\_URL \
--commit-sha COMMIT\_SHA \
--comment COMMENT \
[--maximum-wait-time MAXIMUM\_WAIT\_TIME]
Options
--token TOKEN Terraform Enterprise access token, default from TFE\_API\_TOKEN
--organization ORGANIZATION
of the workspace
--workspace WORKSPACE
to inspect runs for
--clone-url CLONE\_URL
of source repository for the run
--commit-sha COMMIT\_SHA
of commit which initiated the run
--wait-for-status WAIT\_FOR\_STATUS
wait state to reach, defaults to 'applied' and 'planned_and_finished'
--maximum-wait-time MAXIMUM\_WAIT\_TIME
for state to be reached in minutes, default 45
--comment to use in the apply of the planned run.
-h, --help show this help message and exit
Description
Finds a Terraform enterpise run initiated for the specified git commit and either polls for a specific state change or apply the planned changes.
tfe-run-wait will wait until the specified status is reached. By default it will wait for the status applied or planned_and_finished. When the run
reaches a non specified final state, it will exit with an error.
tfe-run-apply will request terraform to apply to plan for the run. If the status of the run is already applied or planned_and_finished, it will exit without an error.
It will not check whether the run is in the correct state. The run should be in the state planned or policy_checked.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tfe-run-wait-0.4.5.tar.gz.
File metadata
- Download URL: tfe-run-wait-0.4.5.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11c7e6fd59b9756aa2b193de8f0af8741407e078a3db4b93ed4598b08cfcb781
|
|
| MD5 |
12c690731bd1436e955916cdfacb6671
|
|
| BLAKE2b-256 |
a3100d1184a73c33f51e68331086e99ee1d4d3a6edb47a4125775c5901efb0a5
|
File details
Details for the file tfe_run_wait-0.4.5-py3.7.egg.
File metadata
- Download URL: tfe_run_wait-0.4.5-py3.7.egg
- Upload date:
- Size: 13.3 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
261c9826b9eb70e66f73283599b48f8a2718f3964d5659d80bc0fb2dd3eeaf05
|
|
| MD5 |
276342592f0c5ab6fa8b3bebc8236a5b
|
|
| BLAKE2b-256 |
e423b0a5495bf52d32bf93bcbdb8b5e099e3d07e75e2239044b4add7e2eb6827
|