This is a CLI to help changing and doing stuff in Terraform Cloud.

Terraform Cloud Tool

This is a CLI to help changing and doing stuff in Terraform Cloud.

Terraform CLI Functions

$ terraform-cloud-tool
Terraform Cloud Tool is a tool to manage Terraform Cloud.

Usage:
  terraform-cloud-tool [flags]
  terraform-cloud-tool [command]

Available Commands:
  help        Help about any command
  variable    Variable function to Terraform Cloud
  workspace   Workspace function to Terraform Cloud

Flags:
  -h, --help       help for terraform-cloud-tool
      --o string   The organization to use to authenticate in TFCloud
      --t string   The token to use to authenticate in TFCloud

Use "terraform-cloud-tool [command] --help" for more information about a command.

This tool was made using Cobra, so it's based with differnet commands, we'll list below:

Workspaces

$ terraform-cloud-tool workspace 
Create/Delete/Edit Workspaces in Terraform Cloud

Usage:
  terraform-cloud-tool workspace [flags]
  terraform-cloud-tool workspace [command]

Available Commands:
  apply       apply to workspaces
  delete      delete to workspaces

Flags:
  -h, --help        help for workspace
      --ts string   The tags to set in the workspace

Global Flags:
      --o string   The organization to use to authenticate in TFCloud
      --t string   The token to use to authenticate in TFCloud

Use "terraform-cloud-tool workspace [command] --help" for more information about a command.

Currently we have just the apply and delete Tags in Workspaces.

Variable

$ terraform-cloud-tool variable
Create/Delete/Edit Variables from Terraform Cloud

Usage:
  terraform-cloud-tool variable [flags]
  terraform-cloud-tool variable [command]

Available Commands:
  apply       Apply Variable function to Terraform Cloud
  delete      Delete Variable function to Terraform Cloud
  list        List variables in a Workspace
  read        Read variable in a Workspace

Flags:
  -h, --help         help for variable
      --vn string    Variable Name
      --vs           Variable Value is Sensitive
      --vv string    Variable Value
      --wt string    Filter the Workspace Name (REGEX)
      --wtg string   The tags to filter the workspaces

Global Flags:
      --o string   The organization to use to authenticate in TFCloud
      --t string   The token to use to authenticate in TFCloud

Use "terraform-cloud-tool variable [command] --help" for more information about a command.

Flags:

Flag Description Scope
--o Organization Name Global
--t The token responsible to authe in TFCloud Global
--vn Variable Name Variable
--vs if value is Sensitive Variable
--vv Variable Value Variable
--wt Filter the workspace using Regex Variable
--wtg Tags to filter workspaces Variable

All this flags will be used to variable command.

Variable - List

$ terraform-cloud-tool variable list --o "organization-stamps" --wt "testing-.*-test"
Listing all Variables in testing-1-2-3-test
Name: var1, Value: number1
Name: var2, Value: number2
Name: varSensitive1 

Variable Read

$ terraform-cloud-tool variable read --o "organization-stamps" --wt "testing-.*-test" --vn "var1"
Read Variable var1 for testing-1-2-3-test
Name: var1, Value: number1, Sensitive: false

Variable Delete

$ terraform-cloud-tool variable delete --o "organization-stamps" --wt "testing-.*-test" --vn "var1"

Variable Apply

$ terraform-cloud-tool variable apply --o "organization-stamps" --wt "testing-.*-test" --vn "var1" --vv "number1"
Owner
Edson Ribeiro Junior
Devops Engineer, dad and game lover. CKS|CKA|CKAD.
Edson Ribeiro Junior
Similar Resources

Terraform utility provider for constructing bash scripts that use data from a Terraform module

Terraform Bash Provider This is a Terraform utility provider which aims to robustly generate Bash scripts which refer to data that originated in Terra

Sep 6, 2022

Terraform Provider for Azure (Resource Manager)Terraform Provider for Azure (Resource Manager)

Terraform Provider for Azure (Resource Manager)Terraform Provider for Azure (Resource Manager)

Terraform Provider for Azure (Resource Manager) Version 2.x of the AzureRM Provider requires Terraform 0.12.x and later, but 1.0 is recommended. Terra

Oct 16, 2021

Quick start repository for creating a Terraform provider using terraform-plugin-framework

Terraform Provider Scaffolding (Terraform Plugin Framework) This template repository is built on the Terraform Plugin Framework. The template reposito

Dec 15, 2022

Terraform-provider-mailcow - Terraform provider for Mailcow

Terraform Provider Scaffolding (Terraform Plugin SDK) This template repository i

Dec 31, 2021

Terraform-provider-buddy - Terraform Buddy provider For golang

Terraform Provider for Buddy Documentation Requirements Terraform = 1.0.11 Go

Jan 5, 2022

Terraform-provider-vercel - Terraform Vercel Provider With Golang

Vercel Terraform Provider Website: https://www.terraform.io Documentation: https

Dec 14, 2022

Terraform-grafana-dashboard - Grafana dashboard Terraform module

terraform-grafana-dashboard terraform-grafana-dashboard for project Requirements

May 2, 2022

Puccini-terraform - Enable TOSCA for Terraform using Puccini

(work in progress) TOSCA for Terraform Enable TOSCA for Terraform using Puccini.

Jun 27, 2022

Terraform Provider Scaffolding (Terraform Plugin SDK)

Terraform Provider Scaffolding (Terraform Plugin SDK) This template repository is built on the Terraform Plugin SDK. The template repository built on

Feb 8, 2022
Go-backend-test - Creating backend stuff & openid connect authentication stuff in golang

Go Backend Coding Practice This is my practice repo to learn about creating back

Feb 5, 2022
provide api for cloud service like aliyun, aws, google cloud, tencent cloud, huawei cloud and so on

cloud-fitter 云适配 Communicate with public and private clouds conveniently by a set of apis. 用一套接口,便捷地访问各类公有云和私有云 对接计划 内部筹备中,后续开放,有需求欢迎联系。 开发者社区 开发者社区文档

Dec 20, 2022
Terraform-equinix-migration-tool - Tool to migrate code from Equinix Metal terraform provider to Equinix terraform provider

Equinix Terraform Provider Migration Tool This tool targets a terraform working

Feb 15, 2022
Terraform-in-Terraform: Execute Modules directly from the Terraform Registry

Terraform-In-Terraform Provider This provider allows running Terraform in Terraform. This might seem insane but there are some edge cases where it com

Dec 25, 2022
Bitemporal - Toy Bitemporal Database. Learning by doing

bitemporal ⌛ Building intuition about bitemporal databases by building one for m

Dec 22, 2022
Cloud-Z gathers information and perform benchmarks on cloud instances in multiple cloud providers.

Cloud-Z Cloud-Z gathers information and perform benchmarks on cloud instances in multiple cloud providers. Cloud type, instance id, and type CPU infor

Jun 8, 2022
Dredger is a utility to help convert helm charts to Terraform modules using kubernetes provider.

dredger Dredger is a utility to help convert helm charts to Terraform modules using kubernetes provider. Dredger is made of dark magic and cannot full

Aug 25, 2022
Kubernetes Stuff

Kubernetes Stuff

Jan 11, 2022
Stuff to make standing up sigstore (esp. for testing) easier for e2e/integration testing.
Stuff to make standing up sigstore (esp. for testing) easier for e2e/integration testing.

sigstore-scaffolding This repository contains scaffolding to make standing up a full sigstore stack easier and automatable. Our focus is on running on

Dec 27, 2022