ASG Migration Plan¶
Current State¶
All 4 EC2 instances are standalone. The ASG module exists at tofu/modules/asg but is gated behind create_asg = false.
Migration Steps¶
- Set
create_asg = trueintofu/accounts/nhc/terraform.tfvars - Run
tofu planto review ASG creation - Run
tofu apply— both standalone EC2 and ASG will coexist - Register ASG instances with ALB target groups
- Verify health checks pass on ASG instances
- Drain and terminate standalone EC2 instances
- Remove standalone EC2 module references
Benefits¶
- Auto-healing: unhealthy instances are replaced automatically
- Scaling: scale out during load spikes
- Rolling updates: zero-downtime deployments via launch template versions
Risk Mitigation¶
- ASG runs alongside existing EC2 instances (no downtime during migration)
- Controlled via
create_asgvariable — easy rollback - Test with non-HIPAA workloads (foursites) first
Status
This migration is planned for after MWE production data handover.