NOTICE
1. The Chinese versionof this document was published on 2014.04.08. This document is a translation and the content may not be the latest.
2. You are recommended to get SAP HANA developer edition on AWS via CAL. You can use this document as reference.
3. For getting SAP HANA developer edition on AWS via CAL, refer How to use CAL to create SAP HANA developer edition on AWS - Part 1 and How to use CAL to create SAP HANA developer edition on AWS - Part 2
From A first look at SAP HANA developer edition on AWS, we learned some basics of SAP HANA developer edition including the instance type size and price, how to choose region. In this document, we will learn how to get SAP HANA developer edition on AWS.
Prerequisites
1. Account of SAP Value Prototyping or SCN. If you do not have, refer the registration part in Step by Step Tutorials - Get 30-day free trial of SAP HANA developer editon on CloudShare
2. Account of AWS. If you do not have, register one via Amazon Web Services Sign In
Get SAP HANA developer edition on AWS
1. Click here, and log on
2. Fill out the following form. This is the key step. Grant the SAP HANA developer edition "privilege" to AWS account and you can only pay for EC2 instance. In this step, you need to do the following:
a. Input personal data, * is required.
b. Input AWS Account ID
c. Choose region, we choose Asia Pacific (Singapore) in this example.
d. Read EULA and accept it
3. Redirect to the following page, sign in.
4. Redirect to CloudFormation management console. Since we choose Asia Pacific (Singapore), Singapore is chosen by default at top right. You can change the region in this step certainly. In this step, we are required to create a stack. We need to give it a name and choose a template. From the below image, you can see that a template is chosen by default. For more details of CloudFormation, refer AWS CloudFormation - Configuration Management & Cloud Orchestration
We can open the default in the browser https://hanacfnapsoutheast1.s3.amazonaws.com/cfn-hanaapsoutheast1_70.txt, the content is the following.
{ "AWSTemplateFormatVersion" : "2010-09-09", "Description" : "You are creating an Amazon EC2 instance running SUSE Enterprise Linux 11 SP2 and SAP HANA 1.0 software. An EC2 security group will also be created to give you access to the instance via SSH. We recommend that you further restrict this security group after launch to include only IP addresses you want to have access to this instance. You will need to enter a HANA Instance Size and an EC2 KeyPair below. Costs for each instance type can be found on the AWS Pricing page http://aws.amazon.com/ec2/pricing/. For help please post questions to the SAP HANA Developer Center http://scn.sap.com/community/developer-center/hana", "Parameters" : { "KeyName" : { "Type" : "String", "Description" : "Enter name of an existing EC2 KeyPair to enable SSH access to the instance. KeyPairs can be created via the EC2 tab in the AWS Management Console: https://console.aws.amazon.com/ec2/home?region=ap-southeast-1#s=KeyPairs" }, "HANAInstanceSize" : { "Type" : "String", "Type" : "String", "Default" : "m2.2xlarge", "AllowedValues" : ["m2.2xlarge", "m2.4xlarge"], "Description" : "2 sizes are available: m2.2xlarge (4 vCPUs, 34.2GB memory) or m2.4xlarge (8 vCPUs, 68.4GB memory). The default setting is recommended. Instances can be changed later via the AWS Management Console.", "ConstraintDescription" : "value must be m2.2xlarge, or m2.4xlarge" } }, "Resources" : { "Ec2Instance" : { "Type" : "AWS::EC2::Instance", "Properties" : { "DisableApiTermination": "FALSE", "InstanceType" : { "Ref" : "HANAInstanceSize" } , "SecurityGroups" : [ { "Ref" : "SAPHanaSG" } ], "KeyName" : { "Ref" : "KeyName" }, "ImageId" : "ami-0e4d1b5c", "Tags": [ { "Key" : "Name", "Value" : "SAP HANA Developer Edition" }, { "Key" : "Version", "Value" : "1.7.70" }, { "Key" : "SAP HANA REL", "Value" : "1.00" }, { "Key" : "SAP HANA SPS", "Value" : "7" } , { "Key" : "SAP HANA Revision", "Value" : "70" } ] } }, "EIP" : { "Type" : "AWS::EC2::EIP", "Properties" : { "InstanceId" : { "Ref" : "Ec2Instance" } } }, "SAPHanaSG" : { "Type" : "AWS::EC2::SecurityGroup", "Properties" : { "GroupDescription" : "SAP HANA Security Group", "SecurityGroupIngress" : [ { "IpProtocol": "tcp", "FromPort": "22", "ToPort": "22", "CidrIp": "0.0.0.0/0" }, { "IpProtocol": "tcp", "FromPort": "80", "ToPort": "80", "CidrIp": "0.0.0.0/0" }, { "IpProtocol": "tcp", "FromPort": "443", "ToPort": "443", "CidrIp": "0.0.0.0/0" }, { "IpProtocol": "tcp", "FromPort": "30015", "ToPort": "30015", "CidrIp": "0.0.0.0/0" }, { "IpProtocol": "tcp", "FromPort": "50013", "ToPort": "50014", "CidrIp": "0.0.0.0/0" } ] } } }, "Outputs" : { "InstanceId" : { "Description" : "InstanceId of the newly created EC2 instance", "Value" : { "Ref" : "Ec2Instance" } }, "AZ" : { "Description" : "Availability Zone of the newly created EC2 instance", "Value" : { "Fn::GetAtt" : [ "Ec2Instance", "AvailabilityZone" ] } }, "PublicDNS" : { "Description" : "Public DNSName of the newly created EC2 instance", "Value" : { "Fn::GetAtt" : [ "Ec2Instance", "PublicDnsName" ] } }, "PublicIP" : { "Description" : "Public IP address of the newly created EC2 instance", "Value" : { "Fn::GetAtt" : [ "Ec2Instance", "PublicIp" ] } } } }
We can have a look at this template of SAP HANA developer edition. For better understanding, here is an architecture diagram.
We can analyze this JSON file from inside to outside.
(1) KeyName (line 7 - 9): ask the user to input an EC2 KeyPair. KeyPair consists of a public key and a private key.
(2) HANAInstanceSize (line 12 - 19): defines the supported instance type of SAP HANA SPS07 Rev.70 and the type is AWS::EC2::Instance. From line 15, we can find that the default instance type is m2.2xlarge. From line 16, we can find "AllowedValues" are m2.2xlarge and m2.4xlarge. If you are interested, you can visit https://hanacfnapsoutheast1.s3.amazonaws.com/cfn-hanaapsoutheast1_68.txt to check the supported instance types in Rev 68. You can find m2.xlarge which disappears in Rev 70.
(3) SAPHanaSG (line 42 - 49): defines SAP HANA Security Group and the type is AWS::EC2::SecurityGroup. You will find some ports are opened by default, e.g., 22, 80, 443, 30015(used for JDBC), etc..
(4) Ec2Instance (line 23 - 33): defines AWS EC2 Instance which "Ref" KeyName, HANAInstanceSize and SAPHanaSG.
(5) EIP (line 35 - 40): defines Elastic IP which "Ref" Ec2Instance.
(6) Resources (line 22 - 80): defines the resources which SAP HANA developer edition needs, i.e., EC2, EIP and Security Group.
Input the stack name and click "Next Step".
5. In the following page, we can find the content in red box are defined in the previous template. In this step we need to input KeyName. Go to https://console.aws.amazon.com/ec2/v2/home?region=ap-southeast-1#KeyPairs: and create one.
6. There is no key pair in the management console of "Key Pairs". Click "Create Key Pair"
7. Input key pair name and create
8. Succeed to create key pair and download the private key (pem file).
9. Return to step 5, input key pair name and click "Next Step".
10. Next Step
11. The content in the red box is defined in the template. Check everything and click "Create".
12. The stack is being created.
13. Create successfully.
14. Now let's check if SAP HANA developer edition is created successfully. Services -> All AWS Services -> EC2
15. You can see one running instance which means your SAP HANA developer edition is created and running. Certainly, you are paying now. In addition, you can dinf one EIP, one key pair and two security groups. Click "1 Running Instance".
16. You can find all information of this instance. Congratulations! You have got SAP HANA developer edition.
17. Remember to stop it when you finish using it. Actions -> Stop
18. Confirm and Yes, Stop
19. The instance is stopping.
20. The instance is stopped.