yourLinux:~ # aws ec2 describe-vpcs
{
"Vpcs": [
{
"VpcId": "vpc-b49ab4dc",
"InstanceTenancy": "default",
"CidrBlockAssociationSet": [
{
"AssociationId": "vpc-cidr-assoc-c3d368ab",
"CidrBlock": "172.31.0.0/16",
"CidrBlockState": {
"State": "associated"
}
}
],
"State": "available",
"DhcpOptionsId": "dopt-960819fe",
"CidrBlock": "172.31.0.0/16",
"IsDefault": true
}
]
}
Information | Value |
VpcId | vpc-b49ab4dc |
CidrBlock of Vpc | 172.31.0.0/16 |
yourLinux:~ # aws ec2 describe-availability-zones --region ap-northeast-2
{
"AvailabilityZones": [
{
"State": "available",
"ZoneName": "ap-northeast-2a",
"Messages": [],
"RegionName": "ap-northeast-2"
},
{
"State": "available",
"ZoneName": "ap-northeast-2c",
"Messages": [],
"RegionName": "ap-northeast-2"
}
]
}
Information | Value |
Region name | ap-northeast-2 |
Availability zone | ap-northeast-2c |
yourLinux:~ # aws ec2 create-subnet --vpc-id vpc-b49ab4dc --cidr-block 172.31.128.0/17 --availability-zone ap-northeast-2c
{
"Subnet": {
"AvailabilityZone": "ap-northeast-2c",
"AvailableIpAddressCount": 32763,
"DefaultForAz": false,
"Ipv6CidrBlockAssociationSet": [],
"VpcId": "vpc-b49ab4dc",
"State": "pending",
"MapPublicIpOnLaunch": false,
"SubnetId": "subnet-0ec93994701de0193",
"CidrBlock": "172.31.128.0/17",
"AssignIpv6AddressOnCreation": false
}
}
yourLinux:~ # aws ec2 describe-subnets
{
"Subnet": {
"AvailabilityZone": "ap-northeast-2c",
"AvailableIpAddressCount": 32763,
"DefaultForAz": false,
"Ipv6CidrBlockAssociationSet": [],
"VpcId": "vpc-b49ab4dc",
"State": "available",
"MapPublicIpOnLaunch": false,
"SubnetId": "subnet-0ec93994701de0193",
"CidrBlock": "172.31.128.0/17",
"AssignIpv6AddressOnCreation": false
}
}
Information | Value |
SubnetId | subnet-0ec93994701de0193 |
Cidr Block for SubnetId | 172.31.128.0/17 |
Information | Value |
Private IP address | 172.31.128.21/17 |
Code for naming convenience | Name | ImageId |
SLES11SP4HVM | suse-sles-11-sp4-v20180104-hvm-ssd-x86_64 | ami-afc565c1 |
SLES12SP1HVM | suse-sles-12-sp1-v20161021-hvm-ssd-x86_64 | ami-1ced3972 |
SLES12SP2HVM | suse-sles-12-sp2-v20170620-hvm-ssd-x86_64 | ami-86d00fe8 |
SLES12SP3HVM | suse-sles-12-sp3-v20180215-hvm-ssd-x86_64 | ami-e22b898c |
SLES12SP1SAPHVM | suse-sles-sap-12-sp2-v20180215-hvm-ssd-x86_64-e3458d64-5c36-4577-bd98-0ee19e3eaeec-ami-4cd6c836.4 | ami-5f993e31 |
SLES12SP2SAPHVM | suse-sles-sap-12-sp2-v20180215-hvm-ssd-x86_64-e3458d64-5c36-4577-bd98-0ee19e3eaeec-ami-4cd6c836.4 | ami-003f9d6e |
SLES12SP3SAPHVM | suse-sles-sap-12-sp3-v20180215-hvm-ssd-x86_64-da7aa9c3-97db-4573-89a6-7fe7348d90b0-ami-92d5cbe8.4 | ami-6202a00c |
SLES12SP1SAPBYOSHVM | suse-sles-sap-12-sp1-byos-v20170123-hvm-ssd-x86_64 | ami-b5f928db |
SLES12SP2SAPBYOSHVM | suse-sles-sap-12-sp2-byos-v20180215-hvm-ssd-x86_64 | ami-9e2d8ff0 |
SLES12SP3SAPBYOSHVM | suse-sles-sap-12-sp3-byos-v20180215-hvm-ssd-x86_64 | ami-1433917a |
yourLinux:~ # aws ec2 describe-images --owners self amazon aws-marketplace --filters "Name=name, Values=suse-sles-12-sp3-v20180215-hvm-ssd-x86_64"
{
"Images": [
{
"VirtualizationType": "hvm",
"Description": "SUSE Linux Enterprise Server 12 SP3 (HVM, 64-bit, SSD-Backed)",
"Hypervisor": "xen",
"ImageOwnerAlias": "amazon",
"EnaSupport": true,
"SriovNetSupport": "simple",
"ImageId": "ami-e22b898c",
"State": "available",
"BlockDeviceMappings": [
{
"DeviceName": "/dev/sda1",
"Ebs": {
"Encrypted": false,
"DeleteOnTermination": true,
"VolumeType": "gp2",
"VolumeSize": 10,
"SnapshotId": "snap-07d6aad627cbd5fe3"
}
}
],
"Architecture": "x86_64",
"ImageLocation": "amazon/suse-sles-12-sp3-v20180215-hvm-ssd-x86_64",
"RootDeviceType": "ebs",
"OwnerId": "013907871322",
"RootDeviceName": "/dev/sda1",
"CreationDate": "2018-02-15T14:54:50.000Z",
"Public": true,
"ImageType": "machine",
"Name": "suse-sles-12-sp3-v20180215-hvm-ssd-x86_64"
}
]
}
Information | Value |
Image name | suse-sles-12-sp3-v20180215-hvm-ssd-x86_64 |
Image Id | ami-e22b898c |
Instance Type | vCPU | Mem (GiB) | Storage (GB) | Networking Performance (Gigabit) | Physical Processor | Clock Speed (GHz) |
x1.16xlarge | 64 | 976 | 1 X 1,920 SSD | 10 | Intel Xeon E7-8880 v3 | 2.3 |
x1.32xlarge | 128 | 1,952 | 2 X 1,920 SSD | 25 | Intel Xeon E7-8880 v3 | 2.3 |
x1e.xlarge | 4 | 122 | 1 X 120 SSD | Up to 10 | Intel Xeon E7-8880 v3 | 2.3 |
x1e.2xlarge | 8 | 244 | 1 X 240 SSD | Up to 10 | Intel Xeon E7-8880 v3 | 2.3 |
x1e.4xlarge | 16 | 488 | 1 X 480 SSD | Up to 10 | Intel Xeon E7-8880 v3 | 2.3 |
x1e.8xlarge | 32 | 976 | 1 X 960 SSD | Up to 10 | Intel Xeon E7-8880 v3 | 2.3 |
x1e.16xlarge | 64 | 1,952 | 1 X 1,920 SSD | 10 | Intel Xeon E7-8880 v3 | 2.3 |
x1e.32xlarge | 128 | 3,904 | 2 X 1,920 SSD | 25 | Intel Xeon E7-8880 v3 | 2.3 |
r4.large | 2 | 15.25 | Up to 10 | Intel Xeon E5-2686 v4 | 2.3 | |
r4.xlarge | 4 | 30.5 | Up to 10 | Intel Xeon E5-2686 v4 | 2.3 | |
r4.2xlarge | 8 | 61 | Up to 10 | Intel Xeon E5-2686 v4 | 2.3 | |
r4.4xlarge | 16 | 122 | Up to 10 | Intel Xeon E5-2686 v4 | 2.3 | |
r4.8xlarge | 32 | 244 | 10 | Intel Xeon E5-2686 v4 | 2.3 | |
r4.16xlarge | 64 | 488 | 25 | Intel Xeon E5-2686 v4 | 2.3 |
“t or m” : for general purpose.
“c” : for compute oriented
“r or x” : for memory optimized.
“p or g” : for accelerated computing.
“d or h or I” : for storage optimized.
# aws ec2 describe-reserved-instances-offerings --filters "Name=availability-zone,Values=ap-northeast-2c" --region ap-northeast-2
Information | Value |
Instance Type | r4.2xlarge |
Summarily, cluster strategy limits placement group to 1 Availability Zone, whereas the spread can span multiple Availability zones (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html).
yourLinux:~ # cat /tmp/ebs.json
[
{"DeviceName":"/dev/sda1","Ebs":{"VolumeSize":100,"VolumeType":"gp2","DeleteOnTermination":true}},
{"DeviceName":"/dev/sdf","Ebs":{"VolumeSize":667,"VolumeType":"gp2","DeleteOnTermination":true}},
{"DeviceName":"/dev/sdg","Ebs":{"VolumeSize":667,"VolumeType":"gp2","DeleteOnTermination":true}},
{"DeviceName":"/dev/sdh","Ebs":{"VolumeSize":667,"VolumeType":"gp2","DeleteOnTermination":true}},
{"DeviceName":"/dev/sdi","Ebs":{"VolumeSize":667,"VolumeType":"gp2","DeleteOnTermination":true}},
{"DeviceName":"/dev/sdj","Ebs":{"VolumeSize":50,"VolumeType":"gp2","DeleteOnTermination":true}},
{"DeviceName":"/dev/sdk","Ebs":{"VolumeSize":50,"VolumeType":"gp2","DeleteOnTermination":true}}
]
Information | Value |
Block-device-mapping file | file:///tmp/ebs.json |
yourLinux:~ # aws ec2 create-security-group --group-name SecGrp --description "SecGrp for test" --vpc-id vpc-b49ab4dc
{
"GroupId": "sg-07d8b7d9bc71e0e5d"
}
Information | Value |
Security group name | SecGrp |
Security group Id | sg-07d8b7d9bc71e0e5d |
Rule Type | Proto | Port, Port range(-) | Cidr | Purpose |
SSH | TCP | 22 | DMZCIDR | SSH, SCP |
Custom | UDP | 111 | PrivSubCIDR | Ports for NFS communication |
Custom | TCP | 1128-1129 | DMZCIDR | Host agent access (saphostctrl, saphostctrls) |
Custom | UDP | 2049 | PrivSubCIDR | Ports for NFS communication |
Custom | UDP | 4000-4002 | PrivSubCIDR | Ports for NFS communication |
Custom | TCP | 43## | DMZCIDR | Access to XSEngine (HTTPS) |
Custom | TCP | 80## | DMZCIDR | Access to XSEngine (HTTP) |
Custom | TCP | 8080 | DMZCIDR | Software Update Manager (SUM) access(HTTP) |
Custom | TCP | 8443 | DMZCIDR | Software Update Manager (SUM) access(HTTPS) |
Custom | TCP | 3##13 | DMZCIDR | Database client access for System DB in MDC |
Custom | TCP | 3##15 | DMZCIDR | Database client access |
Custom | TCP | 3##17 | DMZCIDR | Database client access |
Custom | TCP | 3##41-3##44 | DMZCIDR | Database client access for tenant DBs in MDC |
Custom | TCP | 5##13-5##14 | DMZCIDR | Allow access for HANA Studio from RDP. |
Custom | TCP | 1-65535 | PrivSubCIDR | Communications between the master and slave instances |
Rule Type | Protocol | Port, Port range | Cidr | Purpose |
Custom | TCP | 1-65535 | 0.0.0.0/0 | EC2 instance can connect to internet. |
yourLinux:~ # aws ec2 authorize-security-group-ingress --group-name SecGrp --protocol tcp --port 22 --cidr 0.0.0.0/0
yourLinux:~ # aws ec2 authorize-security-group-ingress --group-name SecGrp --protocol udp --port 111 --cidr 172.31.128.0/17
yourLinux:~ # aws ec2 authorize-security-group-ingress --group-name SecGrp --protocol tcp --port 1128-1129 --cidr 0.0.0.0/0
yourLinux:~ # aws ec2 authorize-security-group-ingress --group-name SecGrp --protocol udp --port 2049 --cidr 172.31.128.0/17
yourLinux:~ # aws ec2 authorize-security-group-ingress --group-name SecGrp --protocol udp --port 4000-4002 --cidr 172.31.128.0/17
yourLinux:~ # aws ec2 authorize-security-group-ingress --group-name SecGrp --protocol tcp --port 4300 --cidr 0.0.0.0/0
yourLinux:~ # aws ec2 authorize-security-group-ingress --group-name SecGrp --protocol tcp --port 8000 --cidr 0.0.0.0/0
yourLinux:~ # aws ec2 authorize-security-group-ingress --group-name SecGrp --protocol tcp --port 8080 --cidr 0.0.0.0/0
yourLinux:~ # aws ec2 authorize-security-group-ingress --group-name SecGrp --protocol tcp --port 8443 --cidr 0.0.0.0/0
yourLinux:~ # aws ec2 authorize-security-group-ingress --group-name SecGrp --protocol tcp --port 30015 --cidr 0.0.0.0/0
yourLinux:~ # aws ec2 authorize-security-group-ingress --group-name SecGrp --protocol tcp --port 30017 --cidr 0.0.0.0/0
yourLinux:~ # aws ec2 authorize-security-group-ingress --group-name SecGrp --protocol tcp --port 30041-30044 --cidr 0.0.0.0/0
yourLinux:~ # aws ec2 authorize-security-group-ingress --group-name SecGrp --protocol tcp --port 50013-50014 --cidr 0.0.0.0/0
yourLinux:~ # aws ec2 authorize-security-group-ingress --group-name SecGrp --protocol tcp --port 1-65535 --cidr 172.31.128.0/17
yourLinux:~ # aws ec2 authorize-security-group-ingress --group-name SecGrp --protocol tcp --port 1-65535 --cidr 172.31.128.0/17
yourLinux:~ # aws ec2 authorize-security-group-egress --group-id sg-07d8b7d9bc71e0e5d --protocol=tcp --port 1-65535 --cidr=0.0.0.0/0
yourLinux:~ # aws ec2 create-key-pair --key-name KeyPair --output text > KeyPair.pem
Information | Value |
Keypair name | KeyPair |
Keypair PEM file | KeyPair.pem |
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEAnCVxAiUH6u4fx8NcZMN7S0I+rcpMIyX2H+UaDBPcfPFOkmpmOyIO0jQFwGli
yob1F75szE+PtUdboKjGSCL9HzGpEl+pqIv09JqzGEW/5ogU7JVrELVT+5BffO2EGQo/RSqHVETr
VWPnukMXaV0zB9mz48IyXuxlKjiLvauFzI6H2374oXkPQk/oAQIbJJAxyMwBxa6PkOXRorQIZsMa
UTJ9DQkayV48e87/8XN6VQ8V9NpA3Hr1zZjRNuc0HdLYb6VVVSOKUz/oCE/+MGnP4MERtMfE8vzM
CrwkU22oF6W6aYOcrn/x67MrBudJVxow9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ulIt1L9orEsUjas9l+J3p9QKBgQCJrMhr9yfnPHQm5WtZzSVNm/zV
CZFjK/mW2TbS15RhgteE36enh4iQ+hY3sYulsoiJtoN4dkhvIu06wkr28WN3LG60weZYefm7tB2r
xSivSj6mmfjk5ZlF2ANSZVun5vNdvHyknfpyG8uvo867D/sXHj6DLnq8wWnLP0C/ehLWcg==
-----END RSA PRIVATE KEY-----
C:\> aws ec2 create-key-pair --key-name KeyPair --output text | out-file -encoding ascii -filepath KeyPair.pem
yourLinux:~ # aws ec2 create-placement-group --group-name myplsgrp --strategy cluster
yourLinux:~ # aws ec2 describe-placement-groups
Information | Value |
Placement group name | myplsgrp |
Placement group strategy | cluster |
Information | Value |
Tag::Key | Name |
Tag::Value | SAP HANA Master |
Information | Value |
VpcId | vpc-b49ab4dc |
SubnetId | subnet-0ec93994701de0193 |
ImageId | ami-e22b898c |
Instance type | r4.2xlarge |
Tag for master EC2 instance | Key:Name Value:SAP HANA Master |
Security group name | SecGrp |
Security group Id | sg-07d8b7d9bc71e0e5d |
Keypair name | keyPair |
Placement group name | myplsgrp |
block-device-mappings | file:///tmp/ebs.json |
yourLinux:~ # aws ec2 run-instances \
--image-id ami-e22b898c \
--count 1 \
--instance-type r4.2xlarge \
--ebs-optimized \
--private-ip-address 172.31.128.21 \
--key-name=KeyPair \
--security-group-ids sg-07d8b7d9bc71e0e5d \
--subnet-id subnet-0ec93994701de0193 \
--placement AvailabilityZone=ap-northeast-2c,GroupName=myplsgrp \
--instance-initiated-shutdown-behavior stop \
--block-device-mappings file:///tmp/ebs.json \
--tag-specifications 'ResourceType=instance,Tags=[{Key=Name,Value=SAP HANA Master}]'
{
"Instances": [
{
"Monitoring": {
"State": "disabled"
},
"PublicDnsName": "",
"StateReason": {
"Message": "pending",
"Code": "pending"
},
"State": {
"Code": 0,
"Name": "pending"
},
"InstanceId": "i-0a8eb78dbab3d9353",
"ImageId": "ami-e22b898c",
}
Information | Value |
InstanceId | i-0a8eb78dbab3d9353 |
yourLinux:~ # aws ec2 describe-instance-status --instance-ids i-0a8eb78dbab3d9353
{
"InstanceStatuses": [
{
"InstanceId": "i-0a8eb78dbab3d9353",
"InstanceState": {
"Code": 16,
"Name": "running"
},
"AvailabilityZone": "ap-northeast-2c",
"SystemStatus": {
"Status": "ok",
"Details": [
{
"Status": "passed",
"Name": "reachability"
}
]
},
"InstanceStatus": {
"Status": "ok",
"Details": [
{
"Status": "passed",
"Name": "reachability"
}
]
}
}
]
}
yourLinux:~ # aws ec2 allocate-address
{
"PublicIp": "52.78.39.220",
"Domain": "vpc",
"AllocationId": "eipalloc-043cfeff6c4e8c711"
}
yourLinux:~ # aws ec2 associate-address --instance-id i-0a8eb78dbab3d9353 --allocation-id eipalloc-043cfeff6c4e8c711
{
"AssociationId": "eipassoc-0c8ec2f0d5122bfa5"
}
yourLinux:~ # aws ec2 describe-addresses
{
"Addresses": [
{
"Domain": "vpc",
"InstanceId": " i-0a8eb78dbab3d9353",
"NetworkInterfaceId": "eni-0072c65d64864c809",
"AssociationId": " eipassoc-0c8ec2f0d5122bfa5",
"NetworkInterfaceOwnerId": "786447197291",
"PublicIp": "52.78.39.220",
"AllocationId": " eipalloc-043cfeff6c4e8c711",
"PrivateIpAddress": "172.31.128.21"
}
]
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
29 | |
13 | |
13 | |
10 | |
9 | |
9 | |
8 | |
8 | |
7 | |
6 |