Migration Hub Strategy Deployer
Mindset
One-line takeaway: a migration strategy assessment is a three-stage
pipeline — collect (Application Discovery Service gathers inventory,
performance, and network dependency telemetry via agent-based Collectors
or agentless import) → classify (Strategy Recommendations derives
the 6R strategy per application from runtime data and anti-pattern
detection) → sequence (wave planning groups applications by
dependency proximity and risk into deployable migration waves). A gap
in ANY stage produces a silent failure: the Collector is deployed but
never reports data, the assessment runs but classifies everything as
"rehost" because utilization data is missing, or the wave plan ignores
a hard dependency and the first wave breaks a downstream application.
→ Extended Mindset rationale moved verbatim to references/advanced-patterns.md.
Quick navigation
| You want to... |
Go to |
| Pick between agent-based and agentless discovery |
Step 1 + trade-off table |
| Deploy the Collector VM on vCenter |
Step 2 + worked CLI |
| Configure the assessment scope and duration |
Step 3 |
| Interpret the 6R strategy classification |
Step 4 + Appendix A |
| Detect anti-patterns (EOL OS, deprecated DB) |
Step 5 |
| Run TCO analysis and right-sizing |
Step 6 |
| Plan migration waves from dependency data |
Step 7 |
| Hand off to MGN for rehost execution |
Step 8 |
| Hand off to DMS for database replatform |
Step 9 |
| Avoid common Collector and assessment pitfalls |
Anti-Patterns |
| Recent features (Strategy Recommendations API, MGN wave builder) |
Recent AWS features |
Critical rules at a glance (do NOT bury these)
- Agent-based discovery is required for dependency mapping.
Agentless (Collector VM) gathers inventory and basic performance but
CANNOT capture inter-host network connections. If the wave plan
depends on dependency data, agents must be installed on all in-scope
hosts before the assessment starts.
- Strategy Recommendations needs 7+ days of utilization data for
right-sizing. The assessment derives EC2 instance recommendations
from utilization percentiles. A 1-day collection produces noisy
recommendations; the minimum recommended window is 7 days, with 14-30
days preferred for seasonal workloads.
- The Discovery Collector VM requires network connectivity to BOTH
the vCenter and AWS (the home region). A Collector that cannot
reach vCenter cannot import inventory; a Collector that cannot reach
AWS cannot upload data. Both firewalls must be open before the
Collector starts.
- MGN replication requires the source server's root volume to be
accessible and the MGN agent installed. A rehost strategy is not
"done" when the 6R says rehost — it is done when MGN replication is
healthy and a test cutover succeeds.
- DMS replatform requires the source and target database engines to
be compatible. Strategy Recommendations may recommend replatform
from Oracle to Aurora PostgreSQL, but DMS schema conversion (via AWS
SCT) is a prerequisite. The assessment does not run SCT automatically.
Pre-flight: data requirements
Planning a Migration Hub Strategy assessment requires these inputs:
| Input |
Source |
Why |
| Home region |
aws migrationhub-strategy get-portfolio-preferences (region-aware) |
Migration Hub is region-scoped; all data lands in the home region |
| Existing Discovery data |
aws discovery describe-agents / list-configurations |
Avoid re-collecting if agents are already deployed |
| vCenter connectivity |
Network firewall rules |
Collector VM must reach vCenter on 443 |
| Application inventory |
CMDB, spreadsheet, or vCenter VM list |
Defines the assessment scope |
| MGN service role |
iam get-role on AWSApplicationMigrationAgentInstallationRole |
Rehost handoff requires MGN to be set up |
| DMS endpoints |
aws dms describe-endpoints |
Database replatform requires source and target endpoints |
| Strategy preferences |
migrationhub-strategy get-portfolio-preferences |
Configure rehost/replatform/refactor weighting |
If the input is malformed (missing vCenter or agent list, ambiguous
home region), emit:
ASSESSMENT: <reference>
VERDICT: ERROR
REASON: Cannot plan assessment — data source and application inventory are required.
GAP: Re-supply the discovery method (agent-based / agentless), the application or server list, and the target home region.
Process — Assessment planning (apply in order, produce deployment plan)
Step 0: Expert knowledge — non-obvious Discovery and Strategy behaviors
→ Step 0 expert-knowledge deep dive moved verbatim to references/advanced-patterns.md.
Step 1: Choose the discovery method
| Dimension |
Agent-based (Discovery Agent) |
Agentless (Collector VM) |
| Installation |
Agent on each guest OS |
OVA on vCenter or hypervisor |
| Inventory data |
Yes |
Yes |
| Performance data |
Process-level (CPU, memory, disk per process) |
VM-level (CPU, memory, disk for the whole VM) |
| Network dependency mapping |
Yes (process-to-process connections) |
No (VM-level only) |
| Guest OS access required |
Yes (install agent) |
No |
| Reboot required |
Sometimes (driver install on Windows) |
No |
| Best for |
Dependency mapping, right-sizing, application grouping |
Quick inventory, vCenter-only environments |
| Minimum collection window for 6R |
7 days |
7 days (but 6R falls back to rehost without dependencies) |
Decision rule: deploy agent-based discovery on all critical
applications (those with inter-host dependencies, databases, or
right-sizing uncertainty). Deploy agentless for the long tail of
standalone VMs where inventory-only is sufficient. The two data sources
merge in Discovery.
Step 2: Deploy the Discovery Collector (agentless)
Download the Collector OVA from the Migration Hub console and deploy on
vCenter:
→ Collector registration CLI moved verbatim to references/discovery-collector-deployment.md.
Collector prerequisites checklist:
| Prerequisite |
How to verify |
Effect if missing |
| vCenter reachability (443) |
nc -zv vcenter.example.com 443 |
Collector cannot import inventory |
| AWS reachability (443 to home region) |
nc -zv migrationhub-strategy.us-east-1.amazonaws.com 443 |
Collector cannot upload data |
| vCenter credentials with read access |
Test login |
Collector cannot enumerate VMs |
| Collector VM network with DHCP or static IP |
vCenter console |
Collector cannot communicate |
| DNS resolution for AWS endpoints |
nslookup migrationhub-strategy.us-east-1.amazonaws.com |
Upload fails intermittently |
Step 3: Configure and start the assessment
# Start the assessment (assumes Discovery data is already collected)
aws migrationhub-strategy start-assessment \
--assessment-name portfolio-assessment-q3 \
--s3bucket-for-report-data migration-reports-111111111111 \
--region us-east-1
Assessment scope and duration:
| Parameter |
Recommended value |
Why |
| Collection window before assessment |
7-14 days |
Right-sizing needs percentile data |
| Assessment scope |
All in-scope servers |
Group-by-application requires full scope |
| S3 report bucket |
Dedicated bucket with lifecycle policy |
Reports are large; set 90-day expiration |
| Strategy preferences |
Configure before starting |
rehost vs replatform weighting affects output |
Step 4: Interpret the 6R strategy classification
Strategy Recommendations assigns one of six strategies per application:
| Strategy |
Meaning |
When it is recommended |
| Rehost |
Lift-and-shift to EC2 with minimal changes |
Default when no anti-patterns detected and no replatform driver |
| Replatform |
Move to a managed AWS service with minor changes (e.g., EC2 to Elastic Beanstalk, self-managed DB to RDS) |
When a managed service reduces operational overhead without code changes |
| Refactor |
Redesign the application for cloud-native architecture |
When the application has a strong cloud-native driver (scalability, cost) |
| Repurchase |
Move to a SaaS or different product |
When the current product is being replaced (e.g., commercial CRM to SaaS) |
| Retain |
Keep on-premises or defer migration |
When the application is sunsetting soon or has hard compliance constraints |
| Retire |
Decommission the application |
When the application is unused (Discovery shows zero activity) |
Key insight: the 6R is a starting point, not a mandate. Operators
should validate each recommendation against business context. A rehost
recommendation for a stateful monolith may be technically correct but
strategically wrong if the business wants to refactor for scalability.
Step 5: Detect anti-patterns
Strategy Recommendations flags anti-patterns that affect the strategy:
| Anti-pattern |
Detection signal |
Strategy impact |
| End-of-life OS (e.g., Windows Server 2012 R2, CentOS 7) |
OS version from agent or vCenter |
Forces replatform (upgrade OS) or refactor (containerize) |
| Deprecated DB engine (e.g., Oracle 11g, SQL Server 2008) |
DB engine version from agent |
Forces replatform (upgrade DB) or repurchase (move to managed) |
| Kernel version gap |
Linux kernel version |
May block MGN agent compatibility; update required |
| Bare-metal host |
vCenter host type |
Rehost not possible; must virtualize first |
| Excessive resource allocation |
Utilization < 10% peak |
Right-sizing recommendation; rehost with smaller instance |
| High network dependency (100+ connections) |
Agent network data |
Wave planning must sequence this application carefully |
Step 6: TCO analysis and right-sizing
Strategy Recommendations generates a TCO comparison between on-premises
and AWS, based on:
- On-premises hardware cost (from the operator's input or defaults)
- AWS cost (from right-sized EC2 recommendations + EBS + data transfer)
- 3-year TCO horizon (default)
Right-sizing methodology:
| Utilization percentile |
EC2 recommendation |
| P95 CPU < 20%, memory < 30% |
Downsize by 2 sizes |
| P95 CPU 20-60%, memory 30-70% |
Current size or one size down |
| P95 CPU > 80% or memory > 90% |
Upsize or split |
Gap class — missing utilization data: if the collection window is
less than 7 days or the agent was not installed, right-sizing falls back
to a match-current-spec recommendation (on-premises vCPU/RAM mapped to
the closest EC2 instance). This over-provisions in most cases. Flag
PREREQUISITES_MISSING if the collection window is insufficient.
Step 7: Plan migration waves from dependency data
Wave planning groups applications by dependency proximity. The goal is to
migrate interdependent applications together to avoid partial-migration
breakage.
Wave planning inputs:
| Input |
Source |
| Application dependency graph |
Discovery agent network data |
| Application grouping |
Strategy Recommendations group-by-application output |
| Business priority |
Stakeholder input |
| Risk tolerance |
Stakeholder input |
| Cutover window constraints |
Stakeholder input |
Wave sequencing heuristic:
- Wave 0 (pilot): 1-2 low-risk, standalone applications (no
dependencies). Validate the MGN/DMS pipeline end-to-end.
- Wave 1 (foundation): shared services (DNS, AD, monitoring) that
downstream applications depend on. These MUST migrate first.
- Wave 2+ (dependency-ordered): applications grouped by dependency
clusters. Each wave is a connected component in the dependency graph
— migrating a wave must not leave a dependency stranded across the
on-premises/AWS boundary.
- Wave N (complex): applications with 100+ dependencies or hard
compliance constraints. These require detailed runbooks and may use
a hybrid model (retain on-premises with VPN/Direct Connect).
Hard constraint: a wave must not split a dependency cluster. If
application A (wave 2) depends on application B (wave 3), either move B
to wave 2 or delay A to wave 3. The dependency graph determines the
minimum wave count; business priority determines the ordering within
that constraint.
Step 8: Hand off to Application Migration Service (MGN) for rehost
For applications classified as "rehost," MGN handles replication and
cutover:
# Install the MGN agent on the source server (requires OS access)
# On Linux:
sudo yum install aws-replication-agent -y
# Register the source server with MGN
aws mgn create-launch-template-template \
--launch-template-template-name rehost-template \
--region us-east-1
MGN handoff checklist:
| Step |
Command / action |
| Install MGN agent |
Per OS (yum, apt, MSI) |
| Verify replication healthy |
aws mgn describe-replication-configuration-templates |
| Configure launch template |
Set instance type, subnet, security group |
| Run test cutover |
aws mgn start-cutover --source-server-id s-xxxx |
| Validate test instance |
Application-level smoke tests |
| Schedule production cutover |
Stakeholder approval + maintenance window |
Step 9: Hand off to Database Migration Service (DMS) for replatform
For databases classified as "replatform" (self-managed to RDS/Aurora):
# Create the DMS replication instance
aws dms create-replication-instance \
--replication-instance-identifier migration-rep \
--replication-instance-class dms.r5.xlarge \
--region us-east-1
DMS handoff checklist:
| Step |
Command / action |
| Run AWS SCT for schema conversion |
SCT GUI or CLI (heterogeneous migrations only) |
| Create source endpoint |
aws dms create-endpoint --endpoint-type source ... |
| Create target endpoint |
aws dms create-endpoint --endpoint-type target ... |
| Create migration task |
aws dms create-replication-task ... |
| Start full load + CDC |
aws dms start-replication-task --migration-type full-load-and-cdc |
| Validate data parity |
Compare row counts and checksums |
| Cutover application connection |
Update connection strings |
Output format
ASSESSMENT: <reference>
HOME_REGION: <region>
DISCOVERY_METHOD:
- Agent-based: <yes | no>, agent count <N>
- Agentless: <yes | no>, Collector VM on <vCenter / hypervisor>
- Collection window: <days>
COLLECTOR_PLAN:
- Prerequisites: <verified list>
- Deployment: <OVA + registration steps>
ASSESSMENT_SCHEDULE:
- Start: <immediate | after-collection>
- Duration: <days>
- Report bucket: <s3 uri>
STRATEGY_GROUPS:
- Application: <name>, servers: <N>, strategy: <6R>, confidence: <high | medium | low>
ANTI_PATTERNS:
- Server: <id>, pattern: <EOL OS | deprecated DB | ...>, impact: <replatform | refactor | ...>
TCO:
- On-premises 3-year: <$X>
- AWS 3-year (right-sized): <$Y>
- Savings: <$Z>
RIGHT_SIZING:
- Server: <id>, current: <vCPU/RAM>, recommended: <instance type>, utilization: <P95 CPU/mem>
WAVE_PLAN:
- Wave 0: <pilot applications>
- Wave 1: <foundation applications>
- Wave 2+: <dependency-ordered clusters>
MGN_HANDOFF: <ready | blocked>
DMS_HANDOFF: <ready | blocked>
VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING
GAP: <if PREREQUISITES_MISSING, the specific missing piece>
TEMPLATE: <CLI snippets for Collector, assessment, MGN, DMS>
Worked example — READY_TO_DEPLOY, full assessment
ASSESSMENT: portfolio-q3-assessment
HOME_REGION: us-east-1
DISCOVERY_METHOD:
- Agent-based: yes, agent count 120 (all critical hosts)
- Agentless: yes, Collector VM on vcenter.example.com
- Collection window: 14 days
COLLECTOR_PLAN:
- Prerequisites: vCenter 443 reachable, AWS 443 reachable, vCenter read credentials verified, DNS resolving
- Deployment: OVA deployed, registered to home region us-east-1
ASSESSMENT_SCHEDULE:
- Start: after-collection (14 days from Collector deploy)
- Duration: 14 days collection + 1 day analysis
- Report bucket: s3://migration-reports-111111111111/portfolio-q3/
STRATEGY_GROUPS:
- Application: billing-service, servers: 8, strategy: rehost, confidence: high
- Application: user-auth, servers: 5, strategy: replatform (self-managed PostgreSQL to RDS), confidence: high
- Application: legacy-crm, servers: 12, strategy: refactor (containerize), confidence: medium
- Application: reporting-etl, servers: 0 active, strategy: retire, confidence: high
ANTI_PATTERNS:
- Server: srv-042, pattern: EOL OS (Windows Server 2012 R2), impact: replatform to Windows Server 2022 required
- Server: srv-078, pattern: deprecated DB engine (Oracle 11g), impact: replatform to Aurora PostgreSQL or upgrade
- Server: srv-091, pattern: excessive resource allocation (P95 CPU 3%), impact: right-size from m5.4xlarge to m5.large
TCO:
- On-premises 3-year: $1,800,000
- AWS 3-year (right-sized): $1,100,000
- Savings: $700,000 (39%)
RIGHT_SIZING:
- Server: srv-091, current: 16 vCPU / 64 GB, recommended: m5.large (2 vCPU / 8 GB), utilization: P95 CPU 3%, mem 12%
- Server: srv-042, current: 8 vCPU / 32 GB, recommended: m5.xlarge (4 vCPU / 16 GB), utilization: P95 CPU 45%, mem 60%
WAVE_PLAN:
- Wave 0 (pilot): billing-service (8 servers, no external dependencies)
- Wave 1 (foundation): shared-dns, shared-ad, shared-monitoring (15 servers, all downstream depend on these)
- Wave 2: user-auth (5 servers, depends on shared-ad from Wave 1)
- Wave 3: legacy-crm (12 servers, depends on shared-dns and user-auth)
MGN_HANDOFF: ready (agent install instructions prepared for rehost targets)
DMS_HANDOFF: ready (SCT + DMS endpoints prepared for user-auth PostgreSQL replatform)
VERDICT: READY_TO_DEPLOY
GAP: None
TEMPLATE:
# 1. Deploy Collector VM (download OVA from console, deploy on vcenter.example.com)
aws discovery start-import-task --name vcenter-import --vcenter --region us-east-1
# 2. Install agents on 120 critical hosts (yum/apt/MSI per OS)
# 3. Wait 14 days, then start assessment
aws migrationhub-strategy start-assessment --assessment-name portfolio-q3-assessment --s3bucket-for-report-data migration-reports-111111111111 --region us-east-1
# 4. MGN rehost for billing-service
aws mgn create-launch-template-template --launch-template-template-name billing-rehost --region us-east-1
# 5. DMS replatform for user-auth PostgreSQL
aws dms create-replication-instance --replication-instance-identifier user-auth-rep --replication-instance-class dms.r5.xlarge --region us-east-1
Worked example — PREREQUISITES_MISSING, agentless-only with short window
→ Secondary worked example moved verbatim to references/worked-examples.md.
Anti-Patterns — NEVER do these things
NEVER start an assessment with less than 7 days of Discovery data.
Right-sizing and 6R classification rely on utilization percentiles.
A short window produces noisy recommendations.
NEVER rely on agentless-only discovery for wave planning. The Collector
VM provides inventory but NOT inter-host dependencies. Without the
dependency graph, wave sequencing is impossible. Install agents on
critical hosts.
NEVER rehost an end-of-life OS without flagging the anti-pattern.
Strategy Recommendations detects EOL OS and recommends replatform.
Ignoring this produces an EC2 instance that fails compliance on day one.
NEVER assume the 6R strategy is final. It is derived from runtime
telemetry, not business context. Validate each recommendation with
stakeholders.
NEVER skip the MGN test cutover. A rehost is not complete until MGN
replication is healthy AND a test cutover produces a bootable,
functional EC2 instance.
NEVER skip AWS SCT for heterogeneous database migrations. DMS
replicates data; it does NOT convert schema objects or stored
procedures. An Oracle-to-Aurora replatform without SCT produces a
database with tables but no triggers, views, or procedures.
NEVER deploy the Collector VM without verifying vCenter AND AWS
network reachability (both paths on 443). A Collector that cannot
reach either endpoint appears healthy but never reports data.
NEVER change the Migration Hub home region after collection starts.
All Discovery data is region-scoped. Confirm the region with
stakeholders before starting.
NEVER wave-plan without the dependency graph. A wave that splits a
dependency cluster creates a broken state where applications cannot
reach each other across the on-premises/AWS boundary.
NEVER start DMS replication without validating data parity after the
full load. Compare row counts and checksums before cutover.
NEVER interpret "retain" as "do nothing." Retained applications still
require a connectivity plan (VPN/Direct Connect) to reach migrated
applications in AWS.
NEVER use Migration Hub Orchestrator managed templates without
verifying they fit the application profile. Validate against one pilot
application first.
Configuration dependency graph
→ Configuration dependency graph moved verbatim to references/advanced-patterns.md.
Pre-flight safety checks
- MANDATORY CONFIRMATION GATE. Before any state-changing operation,
emit:
CONFIRM: About to <action> for assessment <name> in <region>. Proceed? (yes/no)
- Before deploying the Collector VM, verify vCenter and AWS network
paths are open.
- Before starting the assessment, verify the collection window is at
least 7 days.
- Before a production MGN cutover, verify a test cutover succeeded.
- Before a DMS cutover, verify data parity (row counts + checksums).
Appendix A — 6R strategy decision matrix
→ Appendix A decision matrix moved verbatim to references/strategy-and-wave-planning.md.
Appendix B — Collector VM vs Discovery Agent deployment summary
→ Appendix B comparison table moved verbatim to references/discovery-collector-deployment.md.
For the full Collector deployment walkthrough and agent install commands,
see references/discovery-collector-deployment.md. For the 6R
interpretation guide and wave planning templates, see
references/strategy-and-wave-planning.md.
Recent AWS features (2024-2026)
→ Recent AWS features deep dive moved verbatim to references/advanced-patterns.md.
Expert heuristic: agent-based vs agentless trade-off + 6R from telemetry + wave sequencing
→ Expert-heuristic deep dive moved verbatim to references/advanced-patterns.md.
References (load on demand)
- references/advanced-patterns.md — Step-0 expert knowledge, configuration dependency graph, expert heuristic, extended Mindset, recent AWS features 2024-2026
- references/worked-examples.md — secondary worked example (PREREQUISITES_MISSING, agentless-only short window)
- references/discovery-collector-deployment.md — Collector VM / Discovery Agent deployment — extended with Step 2 CLI and Appendix B
- references/strategy-and-wave-planning.md — 6R strategy + wave planning — extended with Appendix A decision matrix
Domain
AWS CloudOps / Migration — Strategy assessment and wave planning.
AWS documentation
1---2name: migration-hub-strategy-deployer3description: 'Deploys AWS Migration Hub Strategy Recommendations assessments: assessment creation and group-by-application analysis, data collection via Application Discovery Service (agent-based for dependency telemetry vs agentless Collector VM for inventory), the 6R strategy classification (rehost, replatform, refactor, repurchase, retain, retire) from runtime telemetry, anti-pattern detection (EOL OS, deprecated DB engines), TCO analysis, right-sizing from utilization percentiles, migration wave planning from dependency mapping, and handoff to Application Migration Service (MGN) for rehost and Database Migration Service (DMS) for replatform. Emits READY_TO_DEPLOY with a Collector deployment plan and assessment schedule or PREREQUISITES_MISSING with the specific gap. Use when planning a migration assessment, deploying the Collector, interpreting 6R results, or sequencing migration waves.'4license: Apache-2.05compatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline assessment planning. Live deployment uses aws migrationhub-strategy start-assessment, get-assessment, list-assessment, aws discovery describe-agents, describe-configurations, list-configurations, start-import-task, get-import-task, aws migrationhuborchestrator create-workflow, and aws mgn create-launch-template-template — AWS CLI v2, SSO or key-based credentials, Discovery and...6metadata:7 source: https://skillmd.com/skills/jhkchan/migration-hub-strategy-deployer8 domain: aws-cloudops9 complexity: high10 requires_llm: 'true'11 phase: '1'12 supports_pipeline: 'true'13 entry_point: 'false'14 family: Migration15 task_type: deploy16 skill_class: capability17 lifecycle_status: active18 verdict_shape: READY_TO_DEPLOY | PREREQUISITES_MISSING19 when_to_use: Planning a Migration Hub Strategy Recommendations assessment, deploying the Application Discovery Service Collector (agent-based or agentless), interpreting 6R strategy classifications from runtime telemetry, detecting anti-patterns (end-of-life OS, deprecated DB engines), running a TCO analysis, right-sizing instances from utilization data, planning migration waves from dependency maps, or handing off to Application Migration Service (MGN) and Database Migration Service (DMS) for execution.20 activation_triggers: create Migration Hub Strategy assessment, deploy Discovery Collector, agent-based vs agentless discovery, 6R strategy classification, rehost replatform refactor repurchase retain retire, anti-pattern detection end-of-life OS, deprecated DB engine migration, TCO analysis migration, right-sizing recommendations, migration wave planning, dependency mapping migration, Application Migration Service MGN handoff, Database Migration Service DMS replatform21 invocation_schema: 'Input shape (one of): (a) a migration assessment specification including data source (agent-based, agentless import, or existing Discovery data), target applications or servers, assessment duration, and strategy preferences; (b) a partial spec for interactive refinement ("assess 200 vCenter VMs for 6R strategy"); (c) existing assessment results for interpretation and wave planning. Output shape: { ASSESSMENT_SPEC, VERDICT, COLLECTOR_PLAN, ASSESSMENT_SCHEDULE, STRATEGY_GROUPS[], ANTI_PATTERNS[], WAVE_PLAN, FINDINGS[] } where VERDICT is READY_TO_DEPLOY (Collector plan and assessment ready) or PREREQUISITES_MISSING (specific gap cited).'22 version: 0.1.023 author: Jacky Chan — AWS Community Builder24 keywords: AWS Migration Hub, Strategy Recommendations, Application Discovery Service, ADS, Agent-based discovery, Agentless discovery, Collector VM, vCenter, 6R strategy, rehost, replatform, refactor, repurchase, retain, retire, anti-pattern detection, end-of-life OS, deprecated DB engine, TCO analysis, right-sizing, migration wave planning, dependency mapping, Application Migration Service, MGN, Database Migration Service, DMS25 tags: aws-migration-hub, strategy-recommendations, application-discovery-service, collector, 6r-strategy, wave-planning, mgn, dms, deploy26---2728# Migration Hub Strategy Deployer2930## Mindset3132**One-line takeaway:** a migration strategy assessment is a three-stage33pipeline — **collect** (Application Discovery Service gathers inventory,34performance, and network dependency telemetry via agent-based Collectors35or agentless import) → **classify** (Strategy Recommendations derives36the 6R strategy per application from runtime data and anti-pattern37detection) → **sequence** (wave planning groups applications by38dependency proximity and risk into deployable migration waves). A gap39in ANY stage produces a silent failure: the Collector is deployed but40never reports data, the assessment runs but classifies everything as41"rehost" because utilization data is missing, or the wave plan ignores42a hard dependency and the first wave breaks a downstream application.4344→ Extended Mindset rationale moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md).4546## Quick navigation4748| You want to... | Go to |49|---|---|50| Pick between agent-based and agentless discovery | Step 1 + trade-off table |51| Deploy the Collector VM on vCenter | Step 2 + worked CLI |52| Configure the assessment scope and duration | Step 3 |53| Interpret the 6R strategy classification | Step 4 + Appendix A |54| Detect anti-patterns (EOL OS, deprecated DB) | Step 5 |55| Run TCO analysis and right-sizing | Step 6 |56| Plan migration waves from dependency data | Step 7 |57| Hand off to MGN for rehost execution | Step 8 |58| Hand off to DMS for database replatform | Step 9 |59| Avoid common Collector and assessment pitfalls | Anti-Patterns |60| Recent features (Strategy Recommendations API, MGN wave builder) | Recent AWS features |6162## Critical rules at a glance (do NOT bury these)63641. **Agent-based discovery is required for dependency mapping.**65 Agentless (Collector VM) gathers inventory and basic performance but66 CANNOT capture inter-host network connections. If the wave plan67 depends on dependency data, agents must be installed on all in-scope68 hosts before the assessment starts.692. **Strategy Recommendations needs 7+ days of utilization data for70 right-sizing.** The assessment derives EC2 instance recommendations71 from utilization percentiles. A 1-day collection produces noisy72 recommendations; the minimum recommended window is 7 days, with 14-3073 days preferred for seasonal workloads.743. **The Discovery Collector VM requires network connectivity to BOTH75 the vCenter and AWS (the home region).** A Collector that cannot76 reach vCenter cannot import inventory; a Collector that cannot reach77 AWS cannot upload data. Both firewalls must be open before the78 Collector starts.794. **MGN replication requires the source server's root volume to be80 accessible and the MGN agent installed.** A rehost strategy is not81 "done" when the 6R says rehost — it is done when MGN replication is82 healthy and a test cutover succeeds.835. **DMS replatform requires the source and target database engines to84 be compatible.** Strategy Recommendations may recommend replatform85 from Oracle to Aurora PostgreSQL, but DMS schema conversion (via AWS86 SCT) is a prerequisite. The assessment does not run SCT automatically.8788## Pre-flight: data requirements8990Planning a Migration Hub Strategy assessment requires these inputs:9192| Input | Source | Why |93|---|---|---|94| Home region | `aws migrationhub-strategy get-portfolio-preferences` (region-aware) | Migration Hub is region-scoped; all data lands in the home region |95| Existing Discovery data | `aws discovery describe-agents` / `list-configurations` | Avoid re-collecting if agents are already deployed |96| vCenter connectivity | Network firewall rules | Collector VM must reach vCenter on 443 |97| Application inventory | CMDB, spreadsheet, or vCenter VM list | Defines the assessment scope |98| MGN service role | `iam get-role` on `AWSApplicationMigrationAgentInstallationRole` | Rehost handoff requires MGN to be set up |99| DMS endpoints | `aws dms describe-endpoints` | Database replatform requires source and target endpoints |100| Strategy preferences | `migrationhub-strategy get-portfolio-preferences` | Configure rehost/replatform/refactor weighting |101102**If the input is malformed** (missing vCenter or agent list, ambiguous103home region), emit:104105```text106ASSESSMENT: <reference>107VERDICT: ERROR108REASON: Cannot plan assessment — data source and application inventory are required.109GAP: Re-supply the discovery method (agent-based / agentless), the application or server list, and the target home region.110```111112## Process — Assessment planning (apply in order, produce deployment plan)113114### Step 0: Expert knowledge — non-obvious Discovery and Strategy behaviors115116→ Step 0 expert-knowledge deep dive moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md).117118### Step 1: Choose the discovery method119120| Dimension | Agent-based (Discovery Agent) | Agentless (Collector VM) |121|---|---|---|122| Installation | Agent on each guest OS | OVA on vCenter or hypervisor |123| Inventory data | Yes | Yes |124| Performance data | Process-level (CPU, memory, disk per process) | VM-level (CPU, memory, disk for the whole VM) |125| Network dependency mapping | Yes (process-to-process connections) | No (VM-level only) |126| Guest OS access required | Yes (install agent) | No |127| Reboot required | Sometimes (driver install on Windows) | No |128| Best for | Dependency mapping, right-sizing, application grouping | Quick inventory, vCenter-only environments |129| Minimum collection window for 6R | 7 days | 7 days (but 6R falls back to rehost without dependencies) |130131**Decision rule:** deploy agent-based discovery on all critical132applications (those with inter-host dependencies, databases, or133right-sizing uncertainty). Deploy agentless for the long tail of134standalone VMs where inventory-only is sufficient. The two data sources135merge in Discovery.136137### Step 2: Deploy the Discovery Collector (agentless)138139Download the Collector OVA from the Migration Hub console and deploy on140vCenter:141142→ Collector registration CLI moved verbatim to [references/discovery-collector-deployment.md](references/discovery-collector-deployment.md).143144Collector prerequisites checklist:145146| Prerequisite | How to verify | Effect if missing |147|---|---|---|148| vCenter reachability (443) | `nc -zv vcenter.example.com 443` | Collector cannot import inventory |149| AWS reachability (443 to home region) | `nc -zv migrationhub-strategy.us-east-1.amazonaws.com 443` | Collector cannot upload data |150| vCenter credentials with read access | Test login | Collector cannot enumerate VMs |151| Collector VM network with DHCP or static IP | vCenter console | Collector cannot communicate |152| DNS resolution for AWS endpoints | `nslookup migrationhub-strategy.us-east-1.amazonaws.com` | Upload fails intermittently |153154### Step 3: Configure and start the assessment155156```bash157# Start the assessment (assumes Discovery data is already collected)158aws migrationhub-strategy start-assessment \159 --assessment-name portfolio-assessment-q3 \160 --s3bucket-for-report-data migration-reports-111111111111 \161 --region us-east-1162```163164Assessment scope and duration:165166| Parameter | Recommended value | Why |167|---|---|---|168| Collection window before assessment | 7-14 days | Right-sizing needs percentile data |169| Assessment scope | All in-scope servers | Group-by-application requires full scope |170| S3 report bucket | Dedicated bucket with lifecycle policy | Reports are large; set 90-day expiration |171| Strategy preferences | Configure before starting | rehost vs replatform weighting affects output |172173### Step 4: Interpret the 6R strategy classification174175Strategy Recommendations assigns one of six strategies per application:176177| Strategy | Meaning | When it is recommended |178|---|---|---|179| Rehost | Lift-and-shift to EC2 with minimal changes | Default when no anti-patterns detected and no replatform driver |180| Replatform | Move to a managed AWS service with minor changes (e.g., EC2 to Elastic Beanstalk, self-managed DB to RDS) | When a managed service reduces operational overhead without code changes |181| Refactor | Redesign the application for cloud-native architecture | When the application has a strong cloud-native driver (scalability, cost) |182| Repurchase | Move to a SaaS or different product | When the current product is being replaced (e.g., commercial CRM to SaaS) |183| Retain | Keep on-premises or defer migration | When the application is sunsetting soon or has hard compliance constraints |184| Retire | Decommission the application | When the application is unused (Discovery shows zero activity) |185186**Key insight:** the 6R is a starting point, not a mandate. Operators187should validate each recommendation against business context. A rehost188recommendation for a stateful monolith may be technically correct but189strategically wrong if the business wants to refactor for scalability.190191### Step 5: Detect anti-patterns192193Strategy Recommendations flags anti-patterns that affect the strategy:194195| Anti-pattern | Detection signal | Strategy impact |196|---|---|---|197| End-of-life OS (e.g., Windows Server 2012 R2, CentOS 7) | OS version from agent or vCenter | Forces replatform (upgrade OS) or refactor (containerize) |198| Deprecated DB engine (e.g., Oracle 11g, SQL Server 2008) | DB engine version from agent | Forces replatform (upgrade DB) or repurchase (move to managed) |199| Kernel version gap | Linux kernel version | May block MGN agent compatibility; update required |200| Bare-metal host | vCenter host type | Rehost not possible; must virtualize first |201| Excessive resource allocation | Utilization < 10% peak | Right-sizing recommendation; rehost with smaller instance |202| High network dependency (100+ connections) | Agent network data | Wave planning must sequence this application carefully |203204### Step 6: TCO analysis and right-sizing205206Strategy Recommendations generates a TCO comparison between on-premises207and AWS, based on:208209- On-premises hardware cost (from the operator's input or defaults)210- AWS cost (from right-sized EC2 recommendations + EBS + data transfer)211- 3-year TCO horizon (default)212213Right-sizing methodology:214215| Utilization percentile | EC2 recommendation |216|---|---|217| P95 CPU < 20%, memory < 30% | Downsize by 2 sizes |218| P95 CPU 20-60%, memory 30-70% | Current size or one size down |219| P95 CPU > 80% or memory > 90% | Upsize or split |220221**Gap class — missing utilization data:** if the collection window is222less than 7 days or the agent was not installed, right-sizing falls back223to a match-current-spec recommendation (on-premises vCPU/RAM mapped to224the closest EC2 instance). This over-provisions in most cases. Flag225`PREREQUISITES_MISSING` if the collection window is insufficient.226227### Step 7: Plan migration waves from dependency data228229Wave planning groups applications by dependency proximity. The goal is to230migrate interdependent applications together to avoid partial-migration231breakage.232233Wave planning inputs:234235| Input | Source |236|---|---|237| Application dependency graph | Discovery agent network data |238| Application grouping | Strategy Recommendations group-by-application output |239| Business priority | Stakeholder input |240| Risk tolerance | Stakeholder input |241| Cutover window constraints | Stakeholder input |242243Wave sequencing heuristic:2442451. **Wave 0 (pilot):** 1-2 low-risk, standalone applications (no246 dependencies). Validate the MGN/DMS pipeline end-to-end.2472. **Wave 1 (foundation):** shared services (DNS, AD, monitoring) that248 downstream applications depend on. These MUST migrate first.2493. **Wave 2+ (dependency-ordered):** applications grouped by dependency250 clusters. Each wave is a connected component in the dependency graph251 — migrating a wave must not leave a dependency stranded across the252 on-premises/AWS boundary.2534. **Wave N (complex):** applications with 100+ dependencies or hard254 compliance constraints. These require detailed runbooks and may use255 a hybrid model (retain on-premises with VPN/Direct Connect).256257**Hard constraint:** a wave must not split a dependency cluster. If258application A (wave 2) depends on application B (wave 3), either move B259to wave 2 or delay A to wave 3. The dependency graph determines the260minimum wave count; business priority determines the ordering within261that constraint.262263### Step 8: Hand off to Application Migration Service (MGN) for rehost264265For applications classified as "rehost," MGN handles replication and266cutover:267268```bash269# Install the MGN agent on the source server (requires OS access)270# On Linux:271sudo yum install aws-replication-agent -y272273# Register the source server with MGN274aws mgn create-launch-template-template \275 --launch-template-template-name rehost-template \276 --region us-east-1277```278279MGN handoff checklist:280281| Step | Command / action |282|---|---|283| Install MGN agent | Per OS (yum, apt, MSI) |284| Verify replication healthy | `aws mgn describe-replication-configuration-templates` |285| Configure launch template | Set instance type, subnet, security group |286| Run test cutover | `aws mgn start-cutover --source-server-id s-xxxx` |287| Validate test instance | Application-level smoke tests |288| Schedule production cutover | Stakeholder approval + maintenance window |289290### Step 9: Hand off to Database Migration Service (DMS) for replatform291292For databases classified as "replatform" (self-managed to RDS/Aurora):293294```bash295# Create the DMS replication instance296aws dms create-replication-instance \297 --replication-instance-identifier migration-rep \298 --replication-instance-class dms.r5.xlarge \299 --region us-east-1300```301302DMS handoff checklist:303304| Step | Command / action |305|---|---|306| Run AWS SCT for schema conversion | SCT GUI or CLI (heterogeneous migrations only) |307| Create source endpoint | `aws dms create-endpoint --endpoint-type source ...` |308| Create target endpoint | `aws dms create-endpoint --endpoint-type target ...` |309| Create migration task | `aws dms create-replication-task ...` |310| Start full load + CDC | `aws dms start-replication-task --migration-type full-load-and-cdc` |311| Validate data parity | Compare row counts and checksums |312| Cutover application connection | Update connection strings |313314## Output format315316```text317ASSESSMENT: <reference>318HOME_REGION: <region>319DISCOVERY_METHOD:320 - Agent-based: <yes | no>, agent count <N>321 - Agentless: <yes | no>, Collector VM on <vCenter / hypervisor>322 - Collection window: <days>323COLLECTOR_PLAN:324 - Prerequisites: <verified list>325 - Deployment: <OVA + registration steps>326ASSESSMENT_SCHEDULE:327 - Start: <immediate | after-collection>328 - Duration: <days>329 - Report bucket: <s3 uri>330STRATEGY_GROUPS:331 - Application: <name>, servers: <N>, strategy: <6R>, confidence: <high | medium | low>332ANTI_PATTERNS:333 - Server: <id>, pattern: <EOL OS | deprecated DB | ...>, impact: <replatform | refactor | ...>334TCO:335 - On-premises 3-year: <$X>336 - AWS 3-year (right-sized): <$Y>337 - Savings: <$Z>338RIGHT_SIZING:339 - Server: <id>, current: <vCPU/RAM>, recommended: <instance type>, utilization: <P95 CPU/mem>340WAVE_PLAN:341 - Wave 0: <pilot applications>342 - Wave 1: <foundation applications>343 - Wave 2+: <dependency-ordered clusters>344MGN_HANDOFF: <ready | blocked>345DMS_HANDOFF: <ready | blocked>346VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING347GAP: <if PREREQUISITES_MISSING, the specific missing piece>348TEMPLATE: <CLI snippets for Collector, assessment, MGN, DMS>349```350351### Worked example — READY_TO_DEPLOY, full assessment352353```text354ASSESSMENT: portfolio-q3-assessment355HOME_REGION: us-east-1356DISCOVERY_METHOD:357 - Agent-based: yes, agent count 120 (all critical hosts)358 - Agentless: yes, Collector VM on vcenter.example.com359 - Collection window: 14 days360COLLECTOR_PLAN:361 - Prerequisites: vCenter 443 reachable, AWS 443 reachable, vCenter read credentials verified, DNS resolving362 - Deployment: OVA deployed, registered to home region us-east-1363ASSESSMENT_SCHEDULE:364 - Start: after-collection (14 days from Collector deploy)365 - Duration: 14 days collection + 1 day analysis366 - Report bucket: s3://migration-reports-111111111111/portfolio-q3/367STRATEGY_GROUPS:368 - Application: billing-service, servers: 8, strategy: rehost, confidence: high369 - Application: user-auth, servers: 5, strategy: replatform (self-managed PostgreSQL to RDS), confidence: high370 - Application: legacy-crm, servers: 12, strategy: refactor (containerize), confidence: medium371 - Application: reporting-etl, servers: 0 active, strategy: retire, confidence: high372ANTI_PATTERNS:373 - Server: srv-042, pattern: EOL OS (Windows Server 2012 R2), impact: replatform to Windows Server 2022 required374 - Server: srv-078, pattern: deprecated DB engine (Oracle 11g), impact: replatform to Aurora PostgreSQL or upgrade375 - Server: srv-091, pattern: excessive resource allocation (P95 CPU 3%), impact: right-size from m5.4xlarge to m5.large376TCO:377 - On-premises 3-year: $1,800,000378 - AWS 3-year (right-sized): $1,100,000379 - Savings: $700,000 (39%)380RIGHT_SIZING:381 - Server: srv-091, current: 16 vCPU / 64 GB, recommended: m5.large (2 vCPU / 8 GB), utilization: P95 CPU 3%, mem 12%382 - Server: srv-042, current: 8 vCPU / 32 GB, recommended: m5.xlarge (4 vCPU / 16 GB), utilization: P95 CPU 45%, mem 60%383WAVE_PLAN:384 - Wave 0 (pilot): billing-service (8 servers, no external dependencies)385 - Wave 1 (foundation): shared-dns, shared-ad, shared-monitoring (15 servers, all downstream depend on these)386 - Wave 2: user-auth (5 servers, depends on shared-ad from Wave 1)387 - Wave 3: legacy-crm (12 servers, depends on shared-dns and user-auth)388MGN_HANDOFF: ready (agent install instructions prepared for rehost targets)389DMS_HANDOFF: ready (SCT + DMS endpoints prepared for user-auth PostgreSQL replatform)390VERDICT: READY_TO_DEPLOY391GAP: None392TEMPLATE:393 # 1. Deploy Collector VM (download OVA from console, deploy on vcenter.example.com)394 aws discovery start-import-task --name vcenter-import --vcenter --region us-east-1395396 # 2. Install agents on 120 critical hosts (yum/apt/MSI per OS)397398 # 3. Wait 14 days, then start assessment399 aws migrationhub-strategy start-assessment --assessment-name portfolio-q3-assessment --s3bucket-for-report-data migration-reports-111111111111 --region us-east-1400401 # 4. MGN rehost for billing-service402 aws mgn create-launch-template-template --launch-template-template-name billing-rehost --region us-east-1403 # 5. DMS replatform for user-auth PostgreSQL404 aws dms create-replication-instance --replication-instance-identifier user-auth-rep --replication-instance-class dms.r5.xlarge --region us-east-1405```406407### Worked example — PREREQUISITES_MISSING, agentless-only with short window408409→ Secondary worked example moved verbatim to [references/worked-examples.md](references/worked-examples.md).410411## Anti-Patterns — NEVER do these things412413- NEVER start an assessment with less than 7 days of Discovery data.414 Right-sizing and 6R classification rely on utilization percentiles.415 A short window produces noisy recommendations.416417- NEVER rely on agentless-only discovery for wave planning. The Collector418 VM provides inventory but NOT inter-host dependencies. Without the419 dependency graph, wave sequencing is impossible. Install agents on420 critical hosts.421422- NEVER rehost an end-of-life OS without flagging the anti-pattern.423 Strategy Recommendations detects EOL OS and recommends replatform.424 Ignoring this produces an EC2 instance that fails compliance on day one.425426- NEVER assume the 6R strategy is final. It is derived from runtime427 telemetry, not business context. Validate each recommendation with428 stakeholders.429430- NEVER skip the MGN test cutover. A rehost is not complete until MGN431 replication is healthy AND a test cutover produces a bootable,432 functional EC2 instance.433434- NEVER skip AWS SCT for heterogeneous database migrations. DMS435 replicates data; it does NOT convert schema objects or stored436 procedures. An Oracle-to-Aurora replatform without SCT produces a437 database with tables but no triggers, views, or procedures.438439- NEVER deploy the Collector VM without verifying vCenter AND AWS440 network reachability (both paths on 443). A Collector that cannot441 reach either endpoint appears healthy but never reports data.442443- NEVER change the Migration Hub home region after collection starts.444 All Discovery data is region-scoped. Confirm the region with445 stakeholders before starting.446447- NEVER wave-plan without the dependency graph. A wave that splits a448 dependency cluster creates a broken state where applications cannot449 reach each other across the on-premises/AWS boundary.450451- NEVER start DMS replication without validating data parity after the452 full load. Compare row counts and checksums before cutover.453454- NEVER interpret "retain" as "do nothing." Retained applications still455 require a connectivity plan (VPN/Direct Connect) to reach migrated456 applications in AWS.457458- NEVER use Migration Hub Orchestrator managed templates without459 verifying they fit the application profile. Validate against one pilot460 application first.461462## Configuration dependency graph463464→ Configuration dependency graph moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md).465466## Pre-flight safety checks467468- **MANDATORY CONFIRMATION GATE.** Before any state-changing operation,469 emit: `CONFIRM: About to <action> for assessment <name> in <region>.470 Proceed? (yes/no)`471- **Before deploying the Collector VM**, verify vCenter and AWS network472 paths are open.473- **Before starting the assessment**, verify the collection window is at474 least 7 days.475- **Before a production MGN cutover**, verify a test cutover succeeded.476- **Before a DMS cutover**, verify data parity (row counts + checksums).477478## Appendix A — 6R strategy decision matrix479480→ Appendix A decision matrix moved verbatim to [references/strategy-and-wave-planning.md](references/strategy-and-wave-planning.md).481482## Appendix B — Collector VM vs Discovery Agent deployment summary483484→ Appendix B comparison table moved verbatim to [references/discovery-collector-deployment.md](references/discovery-collector-deployment.md).485486For the full Collector deployment walkthrough and agent install commands,487see **references/discovery-collector-deployment.md**. For the 6R488interpretation guide and wave planning templates, see489**references/strategy-and-wave-planning.md**.490491## Recent AWS features (2024-2026)492493→ Recent AWS features deep dive moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md).494495## Expert heuristic: agent-based vs agentless trade-off + 6R from telemetry + wave sequencing496497→ Expert-heuristic deep dive moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md).498499## References (load on demand)500501- [references/advanced-patterns.md](references/advanced-patterns.md) — Step-0 expert knowledge, configuration dependency graph, expert heuristic, extended Mindset, recent AWS features 2024-2026502- [references/worked-examples.md](references/worked-examples.md) — secondary worked example (PREREQUISITES_MISSING, agentless-only short window)503- [references/discovery-collector-deployment.md](references/discovery-collector-deployment.md) — Collector VM / Discovery Agent deployment — extended with Step 2 CLI and Appendix B504- [references/strategy-and-wave-planning.md](references/strategy-and-wave-planning.md) — 6R strategy + wave planning — extended with Appendix A decision matrix505506## Domain507508AWS CloudOps / Migration — Strategy assessment and wave planning.509510## AWS documentation511512- **AWS Migration Hub Strategy Recommendations** — https://docs.aws.amazon.com/migrationhub-strategy/latest/userguide/513- **Application Discovery Service** — https://docs.aws.amazon.com/application-discovery/latest/userguide/514- **Application Migration Service (MGN)** — https://docs.aws.amazon.com/mgn/latest/515- **Database Migration Service (DMS)** — https://docs.aws.amazon.com/dms/latest/516- **AWS Schema Conversion Tool (SCT)** — https://docs.aws.amazon.com/SchemaConversionTool/latest/userguide/517- **Migration Hub Orchestrator** — https://docs.aws.amazon.com/migrationhub-orchestrator/latest/