> For the complete documentation index, see [llms.txt](https://ysfang82.gitbook.io/development-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ysfang82.gitbook.io/development-notes/aws-notes/service/migration/cloud-migration-the-6r.md).

# Cloud Migration: The 6R

6R

* Rehosting: "Lift and shift"
  * Simple migrations by re-hosting on AWS (applications, databases, data)
  * No cloud optimizations being done, application is migrated as is
  * Ex. migrating AWS VM Import / Export, AWS [Server Migration Service](https://docs.aws.amazon.com/zh_tw/server-migration-service/latest/userguide/server-migration.html)
* Replatforming
  * No changing the core architecture, but leverage some cloud optimizations (containerize)
  * Ex. migrate a database to RDS, or an application to Elastic Beanstalk
* Repurchase: "drop and shop"
  * Moving to a different product while moving to the cloud
  * Often you move to a SaaS platform
  * Expensive in the short term, but quick to deploy
  * Ex. CRM to Salesforce.com, HR to Workday, CMS to Drupal
* Refactoring / Re-architecting
  * Refactor applications with Cloud Native principals
  * Ex. move an application to Serverless, use S3.
* Retire
  * Turn off things you don't need
* Retain
  * Do nothing, just keep it as it is


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ysfang82.gitbook.io/development-notes/aws-notes/service/migration/cloud-migration-the-6r.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
