https://github.com/brandonc/tfediags
A single script that bundles Terraform Enterprise product diagnostics
https://github.com/brandonc/tfediags
bash terraform-enterprise
Last synced: 3 months ago
JSON representation
A single script that bundles Terraform Enterprise product diagnostics
- Host: GitHub
- URL: https://github.com/brandonc/tfediags
- Owner: brandonc
- License: mpl-2.0
- Created: 2023-02-02T19:38:40.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-03T18:24:27.000Z (over 2 years ago)
- Last Synced: 2024-12-28T16:26:39.039Z (5 months ago)
- Topics: bash, terraform-enterprise
- Language: Shell
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tfediags
A shell script that collects helpful product information from Terraform Enterprise. This script will read non-sensitive data such as Terraform version usage from the host Admin API, and pack it into a diagnostic bundle.
Usage:
`$ bash tfediags.sh `
or
`$ curl https://raw.githubusercontent.com/brandonc/tfediags/v0.2.0/tfediags.sh | bash -s -- `
The script will write a file named something like `tfe-diags-20230203_105511Z.tar.gz` to the current directory which you can send to your Terraform Enterprise account or support representative.
## Troubleshooting
`tfediags.sh` relies on the default `terraform login` credentials file, so be sure to `terraform login ` using a site admin account before running this script.
Debug logging output can help us troubleshoot additional problems: `LOG=DEBUG ./tfediags.sh `
## Prerequisites
- jq (1.4+, tested using 1.6)
- curl