https://github.com/skynewz/bulk-update-terraform-cloud-versions
Python script to masssively update Terraform version in given Terraform Cloud workspaces
https://github.com/skynewz/bulk-update-terraform-cloud-versions
terraform terraform-api terraform-cloud terraform-enterprise terraform-versions
Last synced: 30 days ago
JSON representation
Python script to masssively update Terraform version in given Terraform Cloud workspaces
- Host: GitHub
- URL: https://github.com/skynewz/bulk-update-terraform-cloud-versions
- Owner: SkYNewZ
- License: gpl-3.0
- Created: 2020-01-03T12:23:48.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-07T10:31:56.000Z (over 1 year ago)
- Last Synced: 2025-02-16T14:23:23.268Z (3 months ago)
- Topics: terraform, terraform-api, terraform-cloud, terraform-enterprise, terraform-versions
- Language: Python
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bulk-update-terraform-cloud-versions
[](https://github.com/psf/black)
Python script to masssively update Terraform version in given Terraform Cloud workspaces
## Getting started
You need a valid Python3.7 environment with pip installed
```bash
$ git clone https://github.com/SkYNewZ/bulk-update-terraform-cloud-versions.git bulk-update-terraform-cloud-versions
$ cd bulk-update-terraform-cloud-versions
$ pip install -e .
```## Usage
```
➜ update-workspaces-tf-version --help
Usage: update-workspaces-tf-version [OPTIONS]Options:
--vcs TEXT VCS to search workspaces with. Multiple options
are authorized [required]
--terraform-version TEXT Terraform version to search for to search
workspaces with. E.g: 0.11 [required]
--org TEXT Terraform Cloud organization [required]
--branch TEXT VCS branch to search workspaces with [default:
master]
--target-version TEXT Terraform version to update to. E.g: 0.12.18
[default: 0.12.18]
--strict Only search workspaces which exactly match given
version [default: False]
--help Show this message and exit.
```