Launch the HAProxy Enterprise AMI
In this section, you will create an HAProxy Enterprise server in AWS by launching it from the AWS Marketplace.
AWS supported regions
We support the following regions for deploying the HAProxy Enterprise AMI:
US East (N. Virginia) | EU (Frankfurt) | Asia Pacific (Hong Kong) | Africa (Cape Town) |
US East (Ohio) | EU (Zurich) | Asia Pacific (Singapore) | Canada (Central) |
US West (N. California) | EU (Ireland) | Asia Pacific (Sydney) | Middle East (Bahrain) |
US West (Oregon) | EU (London) | Asia Pacific (Jakarta) | Middle East (UAE) |
EU (Stockholm) | Asia Pacific (Melbourne) | South America (Sao Paulo) | |
EU (Milan) | Asia Pacific (Seoul) | ||
EU (Spain) | Asia Pacific (Tokyo) | ||
Asia Pacific (Mumbai) | |||
Asia Pacific (Hyderabad) |
Launch the AMI from the marketplace
Create an HAProxy Enterprise server from the HAProxy Enterprise AMI:
-
From the AWS Marketplace, choose your desired version of the HAProxy Enterprise Amazon Machine Image (AMI). Options exist for Ubuntu Server edition and Red Hat Enterprise Linux edition.
Click Continue to Subscribe to start a subscription to the HAProxy Enterprise software.
Review the pricing and license details, then click Continue to Configuration.
-
On the Configure this Software screen, set the following fields:
Field
Description
example value
Fulfillment option
The type of procedure used for launching the AMI in your environment.
64-bit (x86) Amazon Machine Image (AMI)
Software version
The version of HAProxy Enterprise to launch.
2.2r1-20230215 (Feb 16, 2023)
Region
The AWS region where you created your VPC.
US East (Ohio) / us-east-2
Click Continue to launch.
-
On the Launch this software screen, set the following fields:
Field
Description
example value
Choose an action
How to launch the AMI.
Launch from Website
EC2 instance type
Choose an instance type with at least 4 CPUs and 4 GB RAM, but larger as needed.
c5.xlarge
VPC settings
Choose the VPC ID from the VPC you created earlier.
vpc-0146c0c368ac64143
Subnet settings
Choose one of the public subnets that was created inside the VPC.
subnet-09f29a57cffa00e48
Security group settings
Use the security group settings provided by the seller. You may want to change the Source value for ports 9022 and 9023, which represent the Real-time Dashboard, and port 22, which represents SSH, to be your public IPv4 address instead of Anywhere, to allow connections only from your IP address for SSH access and accessing the dashboard.
Create new based on seller settings
Key pair settings
Create an SSH key pair or use an existing key pair for connecting to EC2 instances.
Click Launch.
Create an elastic IP address
To associate a public, elastic IP address with your HAProxy Enterprise instance:
Open the Amazon EC2 console.
From the EC2 Dashboard, click Elastic IPs, then Allocate Elastic IP address.
On the Allocate Elastic IP address screen, click Allocate.
From the EC2 Dashboard, go to Elastic IPs, select the elastic IP from the list and open its settings.
Click Associate Elastic IP address.
Choose your HAProxy Enterprise instance from the list.
Click Associate.
Connect to the HAProxy Enterprise instance
During installation, you configured an SSH key pair that you can use to connect to the EC2 instance.
-
If necessary, change the permissions of your private key:
Change the permissions on your private key.
$ chmod 600 my-private-key.pem
To get the public IPv4 address of the instance, open the Amazon EC2 console.
From the EC2 Dashboard, go to Instances and select the HAProxy Enterprise instance from the list. Copy its public IPv4 address.
-
Connect to the HAProxy Enterprise instance through its public IP address:
- Ubuntu
-
$ ssh -i my-private-key.pem ubuntu@35.181.155.36
- RHEL
-
$ ssh -i my-private-key.pem ec2-user@35.181.155.36
Next up
Manage the HAProxy Enterprise service