> For the complete documentation index, see [llms.txt](https://ghoulsec.gitbook.io/ghoulsec-vault/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ghoulsec.gitbook.io/ghoulsec-vault/exam-prep-notes/aws-cloud-practitioner/aws-migration-and-innovation/migration-statergies.md).

# Migration Statergies

AWS Follows 6 R's of Migration steps , The **6 R's** of AWS Migration Strategies provide a structured approach to migrate applications to the cloud. Each strategy addresses a specific use case or scenario based on business and technical needs.

<details>

<summary>Rehosting (Lift-and-Shift)</summary>

* **Description**: Moving applications to the cloud with minimal or no modifications.
* **Key Features**:
  * Typically involves migrating workloads as-is.
  * Useful when rapid migration is needed or when legacy applications are not cloud-optimized.
* **Use Cases**:
  * Applications with no immediate need for redesign.
  * Scenarios requiring quick migration to meet deadlines.
* **Tools**: AWS Migration Hub, AWS Application Migration Service (MGN).

</details>

<details>

<summary>Replatforming (Lift, Tinker, and Shift)</summary>

* **Description**: Making minimal changes to applications during migration to optimize performance or cost in the cloud.
* **Key Features**:
  * Minor adjustments like upgrading to a managed database service (e.g., moving from MySQL on-premises to Amazon RDS).
  * Balances speed of migration with some level of optimization.
* **Use Cases**:
  * Applications needing slight improvements without a full rearchitecture.
  * Reducing management overhead (e.g., moving to managed services).
* **Examples**: Replacing self-hosted databases with AWS-managed solutions.

</details>

<details>

<summary>Retire</summary>

* **Description**: Decommissioning or phasing out unused or redundant applications.
* **Key Features**:
  * Reduces costs by eliminating unnecessary workloads.
  * Identifies applications that no longer serve business objectives.
* **Use Cases**:
  * Legacy systems with no future requirements.
  * Consolidation of functions into fewer systems.
* **Tools**: Cost analysis and dependency mapping tools.

</details>

<details>

<summary>Retain (Keep as-is)</summary>

* **Description**: Keeping certain applications in their current environment (on-premises or legacy systems).
* **Key Features**:
  * Applies to systems that cannot or should not be migrated (e.g., due to latency, compliance, or dependency reasons).
  * These applications may still integrate with cloud workloads.
* **Use Cases**:
  * Applications reliant on specialized hardware.
  * Systems needing long-term on-premises presence due to compliance or latency.
* **Examples**: Retaining ERP systems or industrial control systems.

</details>

<details>

<summary>Repurchasing</summary>

* **Description**: Replacing existing applications with new cloud-native solutions, often using SaaS.
* **Key Features**:
  * Typically involves abandoning legacy applications and adopting modern equivalents.
  * Shifts from license-based software to subscription-based SaaS.
* **Use Cases**:
  * Outdated or costly legacy systems.
  * Adopting cloud-native solutions for improved functionality or cost efficiency.
* **Examples**: Moving from a self-hosted CRM to Salesforce.

</details>

<details>

<summary>Refactoring (Re-architecting)</summary>

* **Description**: Reimagining and re-engineering applications to leverage cloud-native features.
* **Key Features**:
  * Significant changes to application code and architecture.
  * Unlocks advanced cloud benefits like serverless computing, microservices, and scalability.
* **Use Cases**:
  * Applications needing enhanced scalability, agility, or performance.
  * Legacy systems hindering business innovation.
* **Examples**: Breaking monolithic applications into microservices using AWS Lambda or Amazon ECS.

</details>

#### Strategy Selection Criteria

1. **Business Goals**: How critical is speed, cost, or scalability?
2. **Technical Feasibility**: Can the application be modernized or must it remain as-is?
3. **Time and Resource Constraints**: How much time and resources are available for migration?
4. **Compliance Requirements**: Are there regulatory constraints on where data or applications can reside?

The **6 R's** provide a flexible framework to tailor migration strategies to meet diverse business and technical needs.


---

# 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, and the optional `goal` query parameter:

```
GET https://ghoulsec.gitbook.io/ghoulsec-vault/exam-prep-notes/aws-cloud-practitioner/aws-migration-and-innovation/migration-statergies.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
