# **Deploying SAP HANA using AWS Launch Wizard for SAP**
Logon to AWS using the details provided
**Create VPC**
1. Open this link in a new tab in the browser you are logged on to AWS in https://docs.aws.amazon.com/quickstart/latest/vpc/welcome.html
1. Click **Launch QuickStart**
1. Change region to **Ireland (eu-west-1)**
3. Click **Next**
4. Change Stack Name to **SAP Launch Wizard VPC**
5. Pick Availability Zones **eu-west-1a** and **eu-west-1b**
6. Leave all the other parameters as the defaults
7. Click **Next**
8. Under Tags enter
a. Key = **Name**
b. Value = **SAP Launch Wizard VPC**
1. Click **Next**
1. Click **Create Stack**
The CloudFormation Stack will run to create a new VPC with Public and Private Subnets across two AZs and also deploy a NAT gateway to allow the private subnets access to the Internet. This will be needed later to allow the Launch Wizard to download the HANA software from your S3 Bucket
**Create Key Pair**
1. While the VPC CloudFormation is running, Click **Services** and select ***EC2***
1. On the left hand side, scroll down to ***Network and Security***
1. Select ***Key Pairs***
1. Click **Create key pair**
1. In the name enter name of the logon you used for AWS e.g. handsonuser01
1. Select ppk and click **Create key pair**
1. The ppk file will be automatically saved by your browser however you won't need it for this hands on session
2. Click **Services** and in the search box type ***CloudFormation***
4. You are taken to CloudFormation and you should see your create VPC stack has completed
**Launch Wizard for SAP**
1. Click **Services** and in the search box type ***Launch Wizard***
1. On the left hand size click ***SAP***
1. Then Click **Create Deployment**
1. Select **SAP** then click **Next**
1. In Deployment Name enter **SAPNWHANA**
1. In description enter **SAP NW on HANA**
a) In Key enter **Name**
b) In Value enter **SAPNWONHANA**
1. Select **Create new configuration**
1. In Configuration Name Enter **Lab-Demo**
1. Select **Production**
1. Pick the key pair previously created
1. Pick your VPC you just created
1. In Availability Zone 1 select **eu-west-1a**
1. In Private Subnet 1 pick **Private Subnet 1a**
1. Leave Private Subnet 2 blank
1. In Availability Zone 2 select **eu-west-2a**
1. In Private Subnet 1 pick **Private Subnet 2a**
1. Leave Private Subnet 2 blank
1. Click check box **Verify connectivity** - this is to confirm the VPC has access to the Internet via the NAT Gateway that was deployed by the VPC quickstart
1. Under Security Groups, select **Create new security groups**
1. Under Connectivity to external systems or users enter **10.0.0.0/16** as the value
1. Leave the Proxy server blank
1. Select **UC** as the Time Zone
1. Under SAP landscape settings enter
a) **5000** as SAP System Admin User ID
b) **5001** as SAP System Admin Group ID
c) **9001** as SAPINST group ID
1. Click **Next**
1. Select **Yes** to save infrastructure configuration and click OK
1. Select **SAP NetWeaver**
2. Enter **NW1** as the SAPSID
3. Select **Yes** under Transport Domain Controller
4. Select **Yes** for the HANA system install
5. Enter the S3 location of the HANA Media e.g. **S3://launchwizardXXXX/HANA**
6. Enter **Aws12345!** as the HANA password
7. Click **Next**
8. Select **Distributed Instance deployment** - this will deploy the HANA DB on one EC2 instance and the ASCS and PAS on another
9. Select **AWS / Marketplace / Community Image**
10. Select **SUSE-Linux-12-SP4-HVM**
11. Enter **nw1saphost** as the hostname
12. Select **Enable EC2 Auto Recovery** for the instance
13. Under Instance sizing select **Use AWS recommended Resources**
a) Set vCPU to **4**
b) Set memory to **32GB**
1. Under settings for Database Server
a) Select **AWS / Marketplace / Community Image**
b) Select **SUSE-Linux-12-SP4-HVM**
c) Select **Scale-up deployment**
d) Enter **nw1hanadb**
e) Set vCPU to **8**
f) Set memory to **60GB**
g) Select **Enable EC2 Auto Recovery for the instance**
1. Click **Next**
1. Review the inputs
1. Click **Deploy**
The Launch Wizard will now start to run and deploy the required AWS resources (Compute / Storage / Network) and then install SAP HANA. This will take around 45 minutes
**Reviewing what was done**
1. Once the deployment has completed, goto **Services** and search for ***EC2***
1. On the left hand size scroll down to **Instances** and select ***Instances***
1. You will see you have two instances running - the **HANA Master** and the **NetWeaver PAS**
1. To connect at the OS level, select one of the instances and click Connect and then click Session Manager
1. This will open a new Window in your browser with a SSH session on the host
2. On the **HANA master** you will see that HANA has been installed
3. On the **NetWeaver PAS** you will see local file systems for ***/usr/sap*** and ***/sapmnt*** have been created as well as an Amazon EFS file system for ***/usr/sap/trans***
{"metaMigratedAt":"2023-06-15T08:42:30.179Z","metaMigratedFrom":"Content","title":"**Deploying SAP HANA using AWS Launch Wizard for SAP**","breaks":true,"contributors":"[{\"id\":\"2fc63a9a-e99a-4809-b2a8-2db6cb9a2b3c\",\"add\":8588,\"del\":3604}]"}