Introduction
In Terraform Enterprise, tracking changes to Variable Sets is essential for auditing and troubleshooting configuration modifications. This guide explains how to locate the logs of Variable Set changes in the support bundle.
Expected Outcome
This guide explains how to locate and review logs for changes made to Variable Sets within a Terraform Enterprise support bundle.
Use Case
This procedure is useful for administrators and support teams who need to audit changes to Variable Sets, investigate potential misconfigurations, or troubleshoot issues related to Variable Sets in Terraform Enterprise.
Procedure
1. Retrieve the Variable Set ID
Use the following API endpoint to obtain the ID of the target Variable Set. Replace <tfe_hostname> and <ws_id> with your values.
https://<tfe_hostname>/api/v2/workspaces/<ws_id>/varsets
The API response contains the Variable Set ID. For example:
{
// ...
"id": "varset-wAbRRpwy5S53cJhW"
// ...
}2. Locate the Variable Set Logs
After you retrieve the Variable Set ID, search for it within the support bundle or application logs (often referred to as Atlas logs). The search results will show logs detailing any creation or update events associated with that Variable Set.
Additional Information
For more details on the API, refer to the official Terraform Enterprise API documentation for Variable Sets.