# AWS CloudFormation Stack Limits Calculator AI Agent Connect

> Verify AWS CloudFormation template compliance and calculate stack limits.

## Overview
- **Category:** infrastructure
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_HbGFZO4nApKoLZ3dY8FKx6dMTvPiTXQeZ6c1tIHB/ai-agent-connect
- **Tags:** cloudformation, aws, iac, limits, compliance

## Description

This MCP server provides deterministic calculations for AWS CloudFormation service quotas. Use `check_template_compliance` to verify if your template size and resource count stay within AWS limits. Use `calculate_stack_capacities` to find maximum allowed outputs and parameters. You can also use `evaluate_stack_set_limits` for multi-account deployment planning and `assess_deployment_health` to check for recommended nested stack depth and change set counts.

## Tools

### check_template_compliance
Determines if a provided template configuration stays within standard AWS service quotas

### assess_deployment_health
Provides recommendations on nested depth and change set management to ensure deployment stability

### calculate_stack_capacities
Calculates specific limits for parameters, outputs, and policies based on standard stack constraints

### evaluate_stack_set_limits
Calculates limits for multi-account deployments using Stack Sets

## Prompt Examples

**Prompt:** 
```
Is my CloudFormation template with 600 resources compliant?
```

**Response:** 
```
The template is not compliant. It exceeds the standard 500 resource limit, though it may be acceptable if you have an account quota increase.
```

**Prompt:** 
```
What is the maximum number of parameters I can have in a stack?
```

**Response:** 
```
The maximum number of parameters allowed per stack is 200.
```

**Prompt:** 
```
I have a nested stack depth of 7. Is this a problem?
```

**Response:** 
```
Yes, a nesting depth of 7 exceeds the recommended limit of 5 to avoid complexity and circular dependencies.
```

## Frequently Asked Questions

**How do I check if my template exceeds AWS resource limits?**
You can use the `check_template_compliance` tool by providing your template size in KB and the total resource count.

**What are the standard limits for stack outputs and parameters?**
The standard limit for both outputs and parameters is 200 per stack. You can verify this using `calculate_stack_capacities`.

**Can I check limits for Stack Sets?**
Yes, use the `evaluate_stack_set_limits` tool to determine the maximum number of stack sets and instances per set allowed for your account.
