You can set up High Availability Licensing (HAL) servers on Amazon Web Services (AWS) EC2, as follows.
Every EC2 instance has both a public and private address. The LM-X server requires that HAL license server settings are identical for all three HAL peers (redundant servers). To provide access for redundant EC2 machines and ensure that the LM-X server will recognize the HAL type, use the private IP address for the LM-X configuration and map the private IP addresses to their corresponding public IP addresses.
For Linux, set this mapping in the /etc/hosts file. On Windows, set this mapping in the {Windows folder}\System32\drivers\etc\hosts.
Example
The following shows an example for three EC2 instances with a Linux OS.
The private IP to public IP mapping:
HAL1: Private IP - 172.31.5.33, Public IP - 34.253.25.122
HAL2: Private IP - 172.31.6.253, Public IP - 34.245.22.38
HAL3: Private IP - 172.31.10.194, Public IP - 46.137.69.84
The configuration to add to LM-X:
HAL_SERVER1 = 6200@172.31.5.33
HAL_SERVER2 = 6200@172.31.6.253
HAL_SERVER3 = 6200@172.31.10.194
For more information about AWS addressing, see the official AWS website at https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-instance-addressing.html. For more information about LM-X's HAL feature, see High Availability Licensing.