Skip to main content
Glama

AWS Terraform MCP Server

by stv-io

ExecuteTerragruntCommand

Streamline Terragrunt workflows by executing commands (init, plan, apply, destroy, run-all) in AWS environments. Manage multi-module setups, pass variables, and configure regions for efficient infrastructure deployment.

Instructions

Execute Terragrunt workflow commands against an AWS account.

This tool runs Terragrunt commands (init, plan, validate, apply, destroy, run-all) in the specified working directory, with optional variables and region settings. Terragrunt extends Terraform's functionality by providing features like remote state management, dependencies between modules, and the ability to execute Terraform commands on multiple modules at once. Parameters: command: Terragrunt command to execute working_directory: Directory containing Terragrunt files variables: Terraform variables to pass aws_region: AWS region to use strip_ansi: Whether to strip ANSI color codes from output include_dirs: Directories to include in a multi-module run exclude_dirs: Directories to exclude from a multi-module run run_all: Run command on all modules in subdirectories terragrunt_config: Path to a custom terragrunt config file (not valid with run-all) Returns: A TerragruntExecutionResult object containing command output and status

Input Schema

NameRequiredDescriptionDefault
aws_regionNoAWS region to use
commandYesTerragrunt command to execute
exclude_dirsNoDirectories to exclude from a multi-module run
include_dirsNoDirectories to include in a multi-module run
run_allNoRun command on all modules in subdirectories
strip_ansiNoWhether to strip ANSI color codes from output
terragrunt_configNoPath to a custom terragrunt config file (not valid with run-all)
variablesNoTerraform variables to pass
working_directoryYesDirectory containing Terragrunt 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": "Terragrunt command to execute", "enum": [ "init", "plan", "validate", "apply", "destroy", "output", "run-all" ], "title": "Command", "type": "string" }, "exclude_dirs": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "Directories to exclude from a multi-module run", "title": "Exclude Dirs" }, "include_dirs": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "Directories to include in a multi-module run", "title": "Include Dirs" }, "run_all": { "default": false, "description": "Run command on all modules in subdirectories", "title": "Run All", "type": "boolean" }, "strip_ansi": { "default": true, "description": "Whether to strip ANSI color codes from output", "title": "Strip Ansi", "type": "boolean" }, "terragrunt_config": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Path to a custom terragrunt config file (not valid with run-all)", "title": "Terragrunt Config" }, "variables": { "anyOf": [ { "additionalProperties": { "type": "string" }, "type": "object" }, { "type": "null" } ], "default": null, "description": "Terraform variables to pass", "title": "Variables" }, "working_directory": { "description": "Directory containing Terragrunt files", "title": "Working Directory", "type": "string" } }, "required": [ "command", "working_directory" ], "title": "execute_terragrunt_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