Skip to content

Terraform Cloud CLI for Managing Workspace Terraform Versions

License

Notifications You must be signed in to change notification settings

tedivm/tfc_version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Cloud Version Manager

This tiny script makes it easy to update the Terraform Version on all of the Workspaces inside Terraform Cloud. It will load a list of Workspaces for an Organization and set their versions to either the latest Terraform version or whatever is specified.

Installation

git clone git@github.com:tedivm/tfc_version.git
cd tfc_version
poetry install

Authentication

This project uses the same credentials file as terraform itself. If you haven't already run terraform login before using this tool.

You can also set the TFC_TOKEN environment variable.

To use a custom install of Terraform Enterprise set the environment variable TFC_DOMAIN to the domain of your instance (just the domain without the http portion of the URL or any trailing slashes, ie app.terraform.io).

Usage

If you used Poetry to install replace tfc_version with poetry run tfc_version.

List Workspaces

tfc_version list ORGANIZATION_NAME

Upgrade to Latest

tfc_version set-version ORGANIZATION_NAME

Upgrade to Specific Version

tfc_version set-version ORGANIZATION_NAME 1.1.2

List Terraform Versions

tfc_version list-available-verions

Get Lastest Version

tfc_version get-latest-version

About

Terraform Cloud CLI for Managing Workspace Terraform Versions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages