agentleFS
mchittinenimchittineni/cloud-platform-skills/.cursor/rules/skills/aws-cloud-migration-strategies.mdc

cloud-platform-skills / skills

Cursor rule1 starsChanged 4 months agoMITView on GitHub

AWS migration planning: the 6Rs framework (rehost, replatform, refactor, repurchase, retain, retire), discovery and wave planning, MGN server migration, DMS data cutover with CDC, and rollback criteria. Use when planning a datacenter exit or lease expiry, deciding whether a legacy monolith should be rehosted or refactored, or moving a large Oracle, SQL Server or Postgres database with minimal downtime.

The file

We split this aws-cloud-migration-strategies.mdc into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Don't: Never migrate workloads without prior discovery dependency mapping (AWS Application Discovery Service).

    line 76

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
aws-cloud-migration-strategies.mdc
---
description: "AWS migration planning: the 6Rs framework (rehost, replatform, refactor, repurchase, retain, retire), discovery and wave planning, MGN server migration, DMS data cutover with CDC, and rollback criteria. Use when planning a datacenter exit or lease expiry, deciding whether a legacy monolith should be rehosted or refactored, or moving a large Oracle, SQL Server or Postgres database with minimal downtime."
globs:
alwaysApply: false
---

# AWS Cloud Migration: The 6Rs Framework & Migration Automation

## When to Use This Skill

**Triggers — load this skill when:**

- A workload portfolio must be assessed and assigned migration strategies
- Migration waves, dependencies, and cutover windows need planning
- Data must move with minimal downtime (DMS/MGN) and a rollback path

**Route elsewhere when:**

- Post-migration cost governance -> `finops-framework-inform-optimize-operate`
- Target-state Kubernetes design -> `aws-eks-enterprise-patterns`
- Schema change mechanics -> `database-devops-lifecycle`

## 1. The 6Rs Migration Decision Tree

```text
                      [Workload Assessment]
                                |
        +-----------------------+-----------------------+
        |                                               |
  [Low Change / Fast]                         [Modernize / Optimize]
        |                                               |
   +----+----+                                     +----+----+
   |         |                                     |         |
Rehost   Replatform                            Refactor  Repurchase
(Lift &   (Managed DB /                         (Serverless / (SaaS replacement)
 Shift)   Containers)                           Microservices)
```

---

## 2. Zero-Downtime Data Migration with AWS DMS (Terraform)

```hcl
resource "aws_dms_replication_instance" "dms_instance" {
  replication_instance_id    = "dms-migration-instance"
  replication_instance_class = "dms.r5.xlarge"
  allocated_storage          = 100
  multi_az                   = true
  vpc_security_group_ids     = [aws_security_group.dms_sg.id]
  replication_subnet_group_id = aws_dms_replication_subnet_group.dms_subnet_group.id
}

resource "aws_dms_replication_task" "continuous_cdc" {
  replication_task_id      = "mysql-to-aurora-cdc"
  migration_type           = "full-load-and-cdc" # Initial load + continuous replication
  replication_instance_arn = aws_dms_replication_instance.dms_instance.replication_instance_arn
  source_endpoint_arn      = aws_dms_endpoint.onprem_mysql.endpoint_arn
  target_endpoint_arn      = aws_dms_endpoint.aws_aurora.endpoint_arn
  table_mappings           = jsonencode({
    rules = [{
      "rule-type" = "selection",
      "rule-id"   = "1",
      "rule-name" = "replicate-all",
      "object-locator" = { "schema-name" = "%", "table-name" = "%" },
      "rule-action"    = "include"
    }]
  })
}
```

---

## 3. Best Practices & Anti-Patterns

- **Do**: Perform continuous CDC (Change Data Capture) replication to achieve near-zero downtime during the final DNS cutover.
- **Don't**: Never migrate workloads without prior discovery dependency mapping (AWS Application Discovery Service).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.