Skip to main content
Glama

terraform-cloud-mcp

get_apply_logs

Retrieve detailed logs from Terraform Cloud apply operations to monitor resource changes and identify errors. Uses the apply ID to fetch raw log output for troubleshooting and analysis.

Instructions

Retrieve logs from an apply.

Gets the raw log output from a Terraform Cloud apply operation, providing detailed information about resource changes and any errors.

API endpoint: Uses the log-read-url from GET /applies/{apply_id}

Args: apply_id: The ID of the apply to retrieve logs for (format: "apply-xxxxxxxx")

Returns: The raw logs from the apply operation. The redirect to the log file is automatically followed.

See: docs/tools/apply.md for reference documentation

Input Schema

NameRequiredDescriptionDefault
apply_idYes

Input Schema (JSON Schema)

{ "properties": { "apply_id": { "title": "Apply Id", "type": "string" } }, "required": [ "apply_id" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/severity1/terraform-cloud-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server