Reduce homogeneous SAP migration cutover time by using Application Migration Service - AWS Prescriptive Guidance

Reduce homogeneous SAP migration cutover time by using Application Migration Service

Created by Pavel Rubin (AWS), Diego Valverde (AWS), and Sunil Yadav (AWS)

Environment: Production

Source: On-premises SAP ASE database

Target: SAP database on Amazon EC2

R Type: Rehost

Workload: SAP

Technologies: Migration; Databases

AWS services: AWS MGN; Amazon EBS

Summary

This pattern outlines the steps for migrating SAP workloads by using AWS Application Migration Service. Application Migration Service facilitates cutovers by using block-level replication to maintain replication volumes that continually sync from their sources.

SAP workloads include the applications SAP Customer Relationship Management (SAP CRM), SAP Enterprise Resource Planning (ERP), and SAP Business Warehouse (SAP BW).

Prerequisites and limitations

Prerequisites

  • An active AWS account with stable network connectivity between source SAP servers and the destination virtual private cloud (VPC) on AWS

  • An SAP Adaptive Server Enterprise (ASE) source database for Linux or Windows in an on-premises data center

Limitations

  • The target operating system must be supported by Amazon Elastic Compute Cloud (Amazon EC2). For more information, see Amazon EC2 FAQs.

Architecture

Source technology stack

  • An SAP ASE database  

Target technology stack

  • Amazon EC2

  • Amazon Elastic Block Store (Amazon EBS)

Source and target architecture

The following diagram shows migration from the on-premises servers through the Replication Agent to the Application Migration Service endpoint. An Amazon Simple Storage Service (Amazon S3) endpoint is used to access installation and configuration files. The subnets for the staging area and the migrated resources contain EC2 instances, with data storage on EBS volumes. Port TCP 443 is used to connect the source machine network to Application Migration Service, and to connect the staging area subnets to the Application Migration Service, Amazon EC2, and Amazon S3 Regional endpoints. Port TCP 1500 is used for data replication between the local network and the staging area.

Description precedes the diagarm.

Tools

Epics

TaskDescriptionSkills required

Initialize Application Migration Service.

Initialize Application Migration Service in the AWS Region where you want to deploy the SAP ASE database. AWS provides an automated setup the first time that you navigate to the Application Migration Service page in each Region.

AWS administrator

Manually create service roles.

(Optional) If you want to use automation (for example, AWS Control Tower) to set up the account, you can manually create the six AWS Identity and Access Management (IAM) roles that are required for installation, replication, and launches. For instructions, see the AWS documentation.

AWS administrator

Create a Replication Settings template.

The Replication Settings template defines the subnet, instance type, Amazon EBS encryption, and how data is routed. For detailed settings information, see the AWS documentation.

General AWS
TaskDescriptionSkills required

Create a new IAM Role.

On the IAM console, navigate to Roles, and choose Create role.

For the Trusted entity type, choose AWS account, and then choose Next.

AWS systems administrator

Attach AWSApplicationMigrationAgentPolicy to the IAM Role.

The AWS managed AWSApplicationMigrationAgentPolicy policy contains the necessary permissions to perform Application Migration Service Agent installation.

After you attach the policy, choose Next.

AWS systems administrator

Complete the role creation.

Assign a friendly name, and choose Create role.

AWS systems administrator

Generate temporary credentials.

To generate the access key ID, secret access key, and session token, follow the instructions in the AWS STS documentation. These credentials are used during Agent installation.

AWS systems administrator
TaskDescriptionSkills required

Download the Agent installer on the SAP source machine.

Download the Agent installer appropriate for your source operating system: Windows or Linux.

App owner

Install the AWS Replication Agent.

When you run the Agent installer file on a source machine, you are first asked to enter your access key, secret access key, session token, and the Region to replicate to. Use the temporary credentials from the IAM role that you previously created, and the same Region that you configured during initialization.

App owner

Wait for initial data replication.

After the Agent is installed, the source machine appears on the Machines tab on the Application Migration Service console.

App owner
TaskDescriptionSkills required

Update the Launch template for the source server.

Each source server uses a unique EC2 Launch template that informs the configuration of the target EC2 server. You can edit this template if you want to customize the Amazon EC2 configuration of your migrated server.

General AWS

Set the default Launch template version.

After you make the required changes to the Launch template, specify to use this updated version as the default Launch template. For more information, see the AWS documentation.

General AWS

Turn off Instance type right sizing.

(Optional) Instance type right sizing provides automatic instance type recommendations based on the configuration of the source SAP server. We recommend turning off this setting so that you can specify customized instance types in the Launch template.

General AWS
TaskDescriptionSkills required

Initiate a test launch.

On the Application Migration Service console, select one or more servers, and then select Launch test instances under Test and Cutover.

General AWS, Migration engineer, Migration lead

Wait for the conversion and launch process to be completed.

You can review the launch process on the Launch history tab. After the machine has successfully launched as an EC2 instance, the Alerts tab will be updated to Launched.

Verify that the test completed successfully.

Connect to the launched instance through Remote Desktop Protocol (RDP) or SSH (Secure Shell), and perform the appropriate application checks. For example, log in to the SAP interface and validate functionality.

Migration engineer, App owner

Update the source lifecycle.

If testing was successful, update the source machine lifecycle to Mark as “Ready for cutover” on the Test and Cutover tab.

Migration engineer, Migration lead
TaskDescriptionSkills required

Schedule a cutover window.

Cutover lead, Migration lead, App owner

Initiate a cutover launch.

Select one or more servers. On the Test and Cutover tab, select Launch cutover instances under Test and Cutover on the Application Migration Service console.

Migration engineer

Wait for the conversion and launch processes to be completed.

You can review the launch process on the Launch history tab. After the machine has successfully launched as an EC2 instance, the Alerts tab will be updated to Launched.

Verify that the cutover completed successfully.

Connect to the launched instance through RDP or SSH, and perform the appropriate application checks.

App owner, Migration engineer

Update the source lifecycle.

If cutover was successful, update the source machine lifecycle by selecting Finalize cutover on the Test and Cutover tab.

Migration engineer

Related resources

References

Video