Skip to content

Instantly share code, notes, and snippets.

Avatar
💻

Caio Delgado caiodelgadonew

💻
View GitHub Profile
@caiodelgadonew
caiodelgadonew / tfe-list-workspaces-versions.sh
Created April 13, 2021 10:14
Terraform Enterprise/Cloud list workspaces by version
View tfe-list-workspaces-versions.sh
#!/bin/bash
# Please export the tfe/cloud token, url, organization and the Terraform version that you want to search
# export TF_TOKEN='<API_TOKEN>'
# export TF_URL='<SERVER_URL>'
# export TF_ORG='<ORGANIZATION>'
# export TF_VERSION='<VERSION_OF_TERRAFORM>'
function get_pages {