Skip to main content
Glama

AWS Terraform MCP Server

by stv-io

ExecuteTerraformCommand

Run Terraform commands (init, plan, validate, apply, destroy) in AWS accounts. Specify working directory, variables, and region to manage infrastructure efficiently with structured outputs.

Instructions

Execute Terraform workflow commands against an AWS account.

This tool runs Terraform commands (init, plan, validate, apply, destroy) in the specified working directory, with optional variables and region settings. Parameters: command: Terraform command to execute working_directory: Directory containing Terraform files variables: Terraform variables to pass aws_region: AWS region to use strip_ansi: Whether to strip ANSI color codes from output Returns: A TerraformExecutionResult object containing command output and status

Input Schema

NameRequiredDescriptionDefault
aws_regionNoAWS region to use
commandYesTerraform command to execute
strip_ansiNoWhether to strip ANSI color codes from output
variablesNoTerraform variables to pass
working_directoryYesDirectory containing Terraform files

Input Schema (JSON Schema)

{ "properties": { "aws_region": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "AWS region to use", "title": "Aws Region" }, "command": { "description": "Terraform command to execute", "enum": [ "init", "plan", "validate", "apply", "destroy" ], "title": "Command", "type": "string" }, "strip_ansi": { "default": true, "description": "Whether to strip ANSI color codes from output", "title": "Strip Ansi", "type": "boolean" }, "variables": { "anyOf": [ { "additionalProperties": { "type": "string" }, "type": "object" }, { "type": "null" } ], "default": null, "description": "Terraform variables to pass", "title": "Variables" }, "working_directory": { "description": "Directory containing Terraform files", "title": "Working Directory", "type": "string" } }, "required": [ "command", "working_directory" ], "title": "execute_terraform_commandArguments", "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/stv-io/aws-terraform-mcp-server'

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