What problem does it solve? Understanding and reproducing a live EC2 instance is slow and error-prone: SSH access may be unavailable, installed software is undocumented, and hand-written infrastructure code drifts from reality. This Skill inventories an EC2 instance entirely through AWS Systems Manager (no SSH keys needed) and converts the findings into OpenTofu and Ansible code that matches the live environment. ## Core Features & Use Cases - SSM-based inventory: Run parallel send-command batches to collect OS details, running services, listening ports, Docker containers, databases, and TLS certificates without SSH. - IaC export: Generate OpenTofu (EC2, security groups, IAM, EIP, Route53, S3 backend) and Ansible roles with Jinja2 templates extracted from live configs, then import existing resources into state and iterate tofu plan to zero diffs. - Migration and rebuild workflows: Diagnose cross-VPC connectivity, migrate local MySQL to RDS, set up nginx reverse proxy with Let's Encrypt, and validate full destroy-and-rebuild cycles via SSM. - Use Case: You inherit an undocumented production EC2 instance. Use this Skill to inventory its software stack via SSM, export it to OpenTofu + Ansible, import the live resources into state, and verify tofu plan shows zero changes. ## Quick Start Analyze EC2 instance i-0123456789abcdef0 in region ap-southeast-1 using SSM and export it to OpenTofu and Ansible code.