awslabs.aws-iac-mcp-server

v1.0.27
awslabs.aws-iac-mcp-server Checked 1 day ago Published 15 days ago

An Infrastructure as Code MCP server that provides CloudFormation template validation, compliance checking, and deployment troubleshooting capabilities.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

validate_cloudformation_template

Validate CloudFormation template syntax, schema, and resource properties using cfn-lint. This tool performs syntax and schema validation for CloudFormation templates. It validates: - JSON/YAML syntax correctness and structure - AWS resource type validity and property schemas - Resource property values against AWS service specifications - Template format compliance with CloudFormation standards - Cross-resource reference validation Use this tool to: - Validate AI-generated CloudFormation templates before deployment - Catch syntax errors, invalid properties, and schema violations early - Get s…

ParameterTypeDescription
template_content *stringCloudFormation template as YAML or JSON string
ignore_checksRule IDs to ignore (e.g., W2001, E3012)
regionsAWS regions to validate against

check_cloudformation_template_compliance

Validate CloudFormation template against security and compliance rules using cfn-guard. This tool performs compliance validation for CloudFormation templates. It validates: - Security best practices and controls - AWS Control Tower proactive controls - Organizational policy requirements - Resource configuration compliance Use this tool to: - Validate templates against security and compliance rules - Catch policy violations before deployment - Get remediation guidance for each violation - Ensure templates meet organizational standards - Receive specific CloudFormation template fixes for each…

ParameterTypeDescription
template_content *stringCloudFormation template as YAML or JSON string

troubleshoot_cloudformation_deployment

Troubleshoot CloudFormation deployment failures with root cause analysis and CloudTrail integration. This tool provides failure analysis for CloudFormation deployments by correlating stack events with CloudTrail API calls and service-specific error patterns. It analyzes: - CloudFormation stack events and resource failure patterns - Cross-service API failures through CloudTrail integration - Common deployment failure scenarios and root causes - Service-specific error messages and remediation steps - Resource dependency failures and circular dependency issues Use this tool to: - Diagnose Cloud…

ParameterTypeDescription
region *stringAWS region where the stack deployment failed
stack_name *stringName of the failed CloudFormation stack
include_cloudtrailbooleanWhether to include CloudTrail analysis

get_cloudformation_pre_deploy_validation_instructions

Get instructions for CloudFormation pre-deployment validation. Returns structured JSON guidance for using CloudFormation's pre-deployment validation feature that catches deployment errors before resource provisioning begins. When you create a change set, CloudFormation automatically validates your template against three common failure causes: 1. Invalid property syntax 2. Resource name conflicts with existing resources in your account 3. S3 bucket emptiness constraint on delete operations If validation fails, the change set status shows 'FAILED' with detailed validation failure information.…

search_cdk_documentation

Searches AWS CDK documentation knowledge bases and returns relevant excerpts. ## Usage This tool searches across multiple CDK documentation sources to find relevant information about CDK constructs, APIs, and implementation patterns. Always use this tool when you need to write or modify CDK code. ## When to Use - Write CDK code or modify any construct - Find specific information about CDK constructs and APIs - Get implementation guidance from official documentation - Look up syntax and examples for CDK patterns - Research best practices and architectural guidelines - Find answers to specif…

ParameterTypeDescription
query *stringSearch query for CDK documentation (required)

search_cloudformation_documentation

Searches AWS CloudFormation documentation knowledge bases and returns relevant excerpts. ## Usage This tool searches AWS CloudFormation documentation to find information about resource types, properties, syntax, and implementation patterns for CloudFormation templates. ## When to Use - Write CloudFormation templates or modify resources - Find specific information about CloudFormation resource types and properties - Get implementation guidance from official documentation - Look up syntax and examples for CloudFormation patterns - Research best practices and architectural guidelines - Find a…

ParameterTypeDescription
query *stringSearch query for CloudFormation documentation. Examples: "AWS::Lambda::Function", "S3 bucket encryption", "DynamoDB table properties"

search_cdk_samples_and_constructs

Searches CDK code samples, examples, constructs, and patterns documentation. ## Usage This tool searches across CDK code samples, community constructs, and implementation patterns to find working examples and reusable components for your CDK projects. ## When to Use - Find working CDK code examples and samples - Look up implementation patterns for specific use cases - Get sample code for AWS service integrations - Research complete CDK application examples - Find L3 constructs created by the community - Discover construct documentation and usage patterns - Find architectural patterns and b…

ParameterTypeDescription
query *stringSearch query for CDK samples and constructs
languagestringProgramming language filter (default: "typescript")

cdk_best_practices

Returns CDK best practices and security guidelines. ## Usage This tool provides comprehensive CDK development guidelines, security best practices, and architectural recommendations. Always run this tool when asked to generate or review CDK code and follow the guidelines returned. ## When to Use - Get CDK security best practices and compliance guidelines - Look up architectural patterns and recommendations - Get guidance on CDK application structure and organization - Research performance optimization techniques - Learn about proper construct usage and design patterns - Understand deploymen…