# Infra Sync

Keep Terraform and CDK infrastructure in sync.

- Repository: https://github.com/agentic-community/mcp-gateway-registry (1032 stars)
- Category: DevOps
- License: Apache-2.0
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add agentic-community/mcp-gateway-registry --skill infra-sync -g -a claude-code -y`
Codex: `npx skills add agentic-community/mcp-gateway-registry --skill infra-sync -g -a codex -y`
Cursor: `npx skills add agentic-community/mcp-gateway-registry --skill infra-sync -g -a cursor -y`
Gemini CLI: `npx skills add agentic-community/mcp-gateway-registry --skill infra-sync -g -a gemini-cli -y`

## Description

Keep Terraform and CDK infrastructure in sync. Compares terraform/aws-ecs/ and infra/ to identify discrepancies in ECS services, networking, storage, secrets, IAM, and configuration. Reports parity gaps and generates fixes for the target IaC tool. Use when changes are made to either Terraform or CDK infrastructure.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Infrastructure Sync Skill

Use this skill when changes are made to either the Terraform (`terraform/aws-ecs/`) or CDK (`infra/`) infrastructure and the other needs to be updated to maintain parity.

## When to Use

- After modifying Terraform files in `terraform/aws-ecs/`
- After modifying CDK files in `infra/lib/registry/`
- When asked to check if Terraform and CDK are in sync
- Before deploying to verify both IaC tools produce equivalent infrastructure

## Input Modes

1. **Full Sync Check** - Compare all resources across both IaC tools
2. **Targeted Sync** - Compare a specific area (e.g., "sync ECS services" or "sync networking")
3. **Propagate Change** - User made changes to one tool and wants the other updated

## Workflow

### Step 1: Identify the Source of Truth

Ask the user (or determine from context):
- Which IaC tool was just modified? (Terraform or CDK)
- Is this a full sync check or targeted to a specific area?

### Step 2: Read Both Configurations

Read the relevant files from both Terraform and CDK based on the comparison area.

#### File Mapping (Terraform to CDK)

The rest: https://github.com/agentic-community/mcp-gateway-registry/blob/HEAD/.claude/skills/infra-sync/SKILL.md
