AWS Infrastructure Intelligence Engine — Scan, Understand, Transform
Project description
RepliMap
AWS Infrastructure Intelligence Engine
Scan existing AWS infrastructure, generate Terraform code, and detect compliance drift against SOC 2, HIPAA, and PCI DSS.
Quick Start • Features • Compliance • Installation • Docs
Features
- Reverse Terraform — Scan any AWS account and generate clean, modular HCL
- Drift Detection — Compare Terraform state against actual AWS configuration
- Compliance Lens — Map infrastructure drift to SOC 2, HIPAA, PCI DSS controls
- Audit-Ready Reports — Generate markdown reports your auditor can read directly
- Risk Exemptions — Document and track accepted risks with expiry dates
- Data Sovereignty — Everything runs locally. No data leaves your machine.
Quick Start
Installation
# Using pipx (recommended)
pipx install replimap
# Using pip
pip install replimap
# Verify
replimap --version
Scan and Generate Terraform
# Scan your AWS account
replimap -p prod -r us-east-1 scan
# Generate Terraform from scanned infrastructure
replimap -p prod -r us-east-1 codify -o ./terraform
Check Compliance Drift
# Compare TF state against AWS and check SOC 2 compliance
replimap drift -s terraform.tfstate --compliance soc2
# Generate audit-ready markdown report
replimap drift -s terraform.tfstate -c soc2 -f markdown -o compliance-report.md
# Check all frameworks at once
replimap drift -s terraform.tfstate -c all
# Use risk exemptions
replimap drift -s terraform.tfstate -c all --ignore-file .replimap-ignore.yml
Generate SOC 2 Evidence Report
# Full evidence report with PASS/FAIL for every resource
replimap audit -s terraform.tfstate --company "Acme Corp" --period "2026-Q1" -o soc2-evidence.md
Compliance Coverage
RepliMap maps 12 infrastructure checks to SOC 2, HIPAA, and PCI DSS controls.
| Rule | Resource | Check | SOC 2 | HIPAA | PCI DSS |
|---|---|---|---|---|---|
| s3-encryption-enabled | S3 Bucket | Default encryption | CC6.1 | §164.312(a)(2)(iv) | 3.4.1 |
| rds-encryption-enabled | RDS Instance | Storage encryption | CC6.1 | §164.312(a)(2)(iv) | 3.4 |
| kms-key-rotation-enabled | KMS Key | Key rotation | CC6.1 | — | — |
| s3-no-public-acl | S3 Bucket | ACL not public | CC6.6 | §164.312(e)(1) | 1.3 |
| rds-not-publicly-accessible | RDS Instance | Not publicly accessible | CC6.6 | — | 1.3 |
| sg-no-unrestricted-ingress | Security Group | No 0.0.0.0/0 on sensitive ports | CC6.6 | — | 1.2.1 |
| sg-no-unrestricted-egress | Security Group | Egress restrictions | CC6.6 | — | — |
| iam-trust-policy | IAM Role | Trust policy review | CC6.1 | — | — |
| s3-logging-enabled | S3 Bucket | Access logging | CC7.1 | §164.312(b) | 10.1 |
| s3-versioning-enabled | S3 Bucket | Versioning enabled | CC8.1 | — | — |
| rds-multi-az-enabled | RDS Instance | Multi-AZ availability | CC7.1 | — | — |
| rds-backup-retention | RDS Instance | Backup >= 7 days | CC7.1 | — | — |
How It Works
DriftEnginecompares your Terraform state against actual AWS resourcesComplianceMappingEnginemaps attribute diffs to framework controls- Value-aware checking prevents false positives (e.g., fixing
publicly_accessible: True → Falseis not a violation) - Port-aware SG analysis: 0.0.0.0/0 on SSH/RDP/DB ports is critical; HTTP/HTTPS is acceptable
Risk Exemptions
Document accepted risks in .replimap-ignore.yml:
exceptions:
- resource: aws_s3_bucket.public_website
attribute: acl
reason: "Public website bucket, approved by CISO"
approved_by: "jane@acme.com"
expires: "2026-12-31"
Exemptions appear as "Accepted Risks" in reports. Expired exemptions are automatically flagged and restored as active findings.
Commands
| Command | Description |
|---|---|
replimap scan |
Scan AWS resources and build dependency graph |
replimap codify |
Generate Terraform from scanned infrastructure |
replimap drift |
Detect infrastructure drift between TF state and AWS |
replimap audit |
Security audit (Checkov-based or SOC 2 evidence with --state) |
replimap graph |
Generate visual dependency graph |
replimap analyze |
Analyze for critical resources, SPOFs, blast radius |
replimap cost |
Estimate monthly AWS costs |
replimap deps |
Explore dependencies for a resource |
replimap unused |
Detect unused and underutilized resources |
View all commands
replimap --help
Additional commands: clone, snapshot, dr, trends, transfer, iam, trust-center, remediate, validate, residency, doctor, license, upgrade
Architecture
RepliMap is built around a Graph Engine powered by NetworkX. It transforms discrete cloud resources into a connected dependency graph, enabling impact analysis, visualization, and intelligent code generation.
┌──────────────────────────────────────────────────────────────────┐
│ RepliMap Architecture │
├──────────────────────────────────────────────────────────────────┤
│ │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ Scanners │────>│ Graph │────>│ Renderers │ │
│ │ (AWS API) │ │ Engine │ │ (Terraform)│ │
│ └─────────────┘ └──────┬──────┘ └─────────────┘ │
│ │ │
│ ┌────────────────────┼────────────────────┐ │
│ │ │ │ │
│ v v v │
│ ┌───────────┐ ┌─────────────┐ ┌───────────┐ │
│ │ Compliance │ │ Right-Sizer │ │ Drift │ │
│ │ Engine │ │ Engine │ │ Detector │ │
│ └───────────┘ └─────────────┘ └───────────┘ │
│ │
└──────────────────────────────────────────────────────────────────┘
Supported Resources
View all 24 supported resource types
| Category | Resources |
|---|---|
| Compute | EC2, Lambda, ECS, EKS |
| Database | RDS, Aurora, DynamoDB, ElastiCache |
| Network | VPC, Subnet, Security Group, Route Table, NAT Gateway, Internet Gateway, ALB/NLB |
| Storage | S3, EBS, EFS |
| Security | IAM Role, IAM Policy, KMS Key, Secrets Manager |
| Other | CloudWatch, SNS, SQS |
Configuration
AWS Credentials
RepliMap uses standard AWS credential chain:
# AWS CLI profile (recommended)
replimap -p my-profile scan
# Environment variables
export AWS_ACCESS_KEY_ID=xxx
export AWS_SECRET_ACCESS_KEY=xxx
replimap scan
# IAM role (EC2/ECS/Lambda)
replimap scan # Auto-detects instance role
Required IAM Permissions
RepliMap only needs read-only access. See IAM_POLICY.md for the minimal policy.
Security & Privacy
Your data never leaves your machine.
- RepliMap runs entirely client-side
- No cloud account required
- Read-only AWS access (no modifications)
- Sensitive data (passwords, keys) automatically redacted
- SOC 2-compliant design
See SECURITY.md for details.
Roadmap
- compliance.tf integration for scan output
- EKS, DynamoDB, CloudTrail, VPC Flow Logs coverage
- CI/CD integration templates (GitHub Actions, Azure DevOps)
- Pulumi and CDK output formats
Pricing
| Community (Free) | Pro ($29/mo) | Team ($99/mo) | Sovereign ($2,500/mo) | |
|---|---|---|---|---|
| Unlimited scans | ✅ | ✅ | ✅ | ✅ |
| Terraform preview | ✅ | ✅ | ✅ | ✅ |
| Download Terraform | — | ✅ | ✅ | ✅ |
| Compliance audit | Basic | Full | Full | Full |
| Drift detection | — | — | ✅ | ✅ |
| CI/CD integration | — | — | ✅ | ✅ |
| APRA/RBNZ compliance | — | — | — | ✅ |
Contributing
We welcome contributions. See CONTRIBUTING.md for guidelines.
git clone git@github.com:RepliMap/replimap.git
cd replimap
pip install -e ".[dev]"
pytest
Documentation
Support
| Purpose | Contact |
|---|---|
| General inquiries | hello@replimap.com |
| Technical support | support@replimap.com |
| Enterprise & Sales | david@replimap.com |
| Bug reports | GitHub Issues |
License
RepliMap is licensed under the Business Source License 1.1.
Made with ☕ in New Zealand
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file replimap-0.3.33.tar.gz.
File metadata
- Download URL: replimap-0.3.33.tar.gz
- Upload date:
- Size: 1.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2813298953b119834188ca564cf5256c64af115a9e2f5c4c191828638b32afec
|
|
| MD5 |
f1ee2b11f4b3e4e6132920c21655f5c7
|
|
| BLAKE2b-256 |
d7250e8b63b2457b493455a7dd5c510e669d3881e76befce384cf3403886361e
|
File details
Details for the file replimap-0.3.33-py3-none-any.whl.
File metadata
- Download URL: replimap-0.3.33-py3-none-any.whl
- Upload date:
- Size: 1.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
862a51a8d12bff204342d95e4dfb2361139086b75662c7e2c9e64da11b4eea95
|
|
| MD5 |
bf3e8b8608e5cac040d63dfc0bf348fe
|
|
| BLAKE2b-256 |
7b4bb39d3aa16db9e1fe26aceb3bd326f5fd1afbc0435e00e16cd9a3f1e0d790
|