RepliMap Docs

Quick Start

Run your first scan and generate Terraform in 2 minutes

Get started with RepliMap in under 2 minutes.

Install RepliMap

pip install replimap

Scan Your Infrastructure

Run a scan to build the dependency graph of your AWS account:

replimap scan --profile prod --region us-east-1

You'll see output like:

Scanning: VPC, EC2, RDS, Lambda, S3...
✓ Scanned 847 resources in 23.4s
✓ Mapped 1,203 dependencies

Generate Terraform

Turn that scan into production-ready Terraform code:

# Preview what will be generated (dry run)
replimap clone --profile prod --mode dry-run

# Generate Terraform files
replimap clone --profile prod --mode generate --output-dir ./terraform

Review Generated Code

Navigate to the output directory:

terraform/
├── main.tf           # All resources
├── variables.tf      # Extracted variables
├── outputs.tf        # Useful outputs
├── providers.tf      # AWS provider config
├── data.tf           # Data sources
└── terraform.tfvars.example

Common Scan Options

# Scan a specific VPC
replimap scan --profile prod --scope vpc:vpc-12345678

# Scan resources by tag
replimap scan --profile prod --entry tag:Application=MyApp

# Scan from an entry point (ALB)
replimap scan --profile prod --entry alb:my-app-alb

# Use cache for faster incremental scans
replimap scan --profile prod --cache

Clone with Transformations

# Clone prod to staging with cost optimization
replimap clone --profile prod \
  --output-dir ./staging-tf \
  --rename-pattern "prod:staging" \
  --downsize \
  --mode generate

The --downsize flag enables the Right-Sizer engine, which automatically reduces EC2/RDS instance sizes for non-production environments.

Visualize Your Infrastructure

Generate an interactive HTML graph:

replimap graph --profile prod --format html --output architecture.html
open architecture.html

Apply to Staging (Optional)

cd ./terraform

# Initialize Terraform
terraform init

# Review the plan
terraform plan

# Apply
terraform apply

Next Steps

On this page