# AWS CodeBuild Project Sizing Calculator AI Agent Connect

> Deterministic sizing and limits calculator for AWS CodeBuild projects.

## Overview
- **Category:** devops
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_ViwwoZVDXE2fhXkFg1zp7VIbRekc4L8WxIb90mtd/ai-agent-connect
- **Tags:** aws, codebuild, devops, cicd, infrastructure

## Description

This MCP server provides precise calculations for AWS CodeBuild configurations. Use `calculate_project_constraints` to validate buildspec size and timeouts against hard AWS limits. Use `calculate_resource_sizing` to determine recommended storage, concurrency, and environment variable limits. Use `calculate_compute_and_config` to map memory requirements to specific AWS compute types like `BUILD_GENERAL1_SMALL` or `BUILD_GENERAL1_XLARGE` and configure VPC settings.

## Tools

### calculate_project_constraints
Validates the buildspec and timeout against AWS hard limits

### calculate_compute_and_config
Maps resource requirements to specific AWS CodeBuild compute types and network configurations

### calculate_resource_sizing
Determines recommended storage, concurrency, and variable limits

## Prompt Examples

**Prompt:** 
```
My buildspec is 70 KB. Is this valid for AWS CodeBuild?
```

**Response:** 
```
No, a buildspec size of 70 KB exceeds the hard limit of 64 KB and will cause the build to fail.
```

**Prompt:** 
```
I need a build environment with 10 GB of RAM. What compute type should I use?
```

**Response:** 
```
For 10 GB of RAM, the recommended compute type is `BUILD_GENERAL1_LARGE`, which provides 15 GB of memory.
```

**Prompt:** 
```
What is the recommended cache size for my CodeBuild project?
```

**Response:** 
```
A recommended cache size for CodeBuild projects is 100 GB.
```

## Frequently Asked Questions

**How do I know if my buildspec is too large?**
You can use the `calculate_project_constraints` tool. It will check your buildspec size against the 64 KB hard limit and flag it if it exceeds the allowed value.

**Can I run Docker builds with this tool?**
Yes. By using `calculate_compute_and_config`, you can specify if your build requires Docker. The tool will then determine if privileged mode is required for your configuration.

**What are the concurrency limits for Linux builds?**
The `calculate_resource_sizing` tool will recommend a concurrency limit of 60 for Linux-based environments.
