Deploying from an Amazon Machine Image on AWS v15
EDB Postgres Advanced Server Amazon Machine Image (AMI) is a preconfigured template with EDB Postgres Advanced Server installed on RHEL 8. You can purchase the EDB Postgres Advanced Server AMI from Amazon Marketplace.
With the EDB Postgres Advanced Server AMI, you can:
- Create an EDB Postgres Advanced Server 15 instance on AWS
- Connect to the instance
- Initialize and use an EDB Postgres Advanced Server cluster
Creating an instance
To deploy an EDB Postgres Advanced Server instance on AWS:
Log into your AWS account.
On the AWS home page, navigate to EC2.
On the EC2 dashboard, navigate to Instances and select Launch instance.
On the Launch an instance page, select Choose an Amazon Machine Image(AMI).
On the Choose an Amazon Machine Image(AMI) page, go to the AWS Marketplace AMIs tab. Enter EDB in the search bar.
Select the EDB Postgres Advanced Server image and review the all the tabs:
- Overview
- Product details
- Pricing
- Usage
- Support
Select Continue. On the Launch an instance page, specify the following:
Name and tags — Provide the name of the server, for example,
EDB test server
.Application and OS Images (Amazon Machine Image) — The selected image name displays in the format
EDB-AS<x>-AWS-<y>
, where:<x>
is the version of EDB Postgres Advanced Server.<y>
is the version of the image.
For example, if the EDB Postgres Advanced Server version is 15.2 and the AMI version is 2.0.1, then the image name is
EDB-AS15.2-AWS-2.0.1
.Instance type — Select the instance type with the compute, memory, storage, and network capabilities you require.
Key pair (login) — Select an existing key pair or create a new key pair. If you create a new key pair, enter a key-pair name, select a key-pair type, and select a private-key file format. Download the new key pair and move it to a location where you can access it. You need a key pair to securely connect to your instance.
Network settings — For Firewall, select an existing security group or create a new security group. For more information, see Network settings in the Amazon documentation.
Configure storage — Allocate the amount of storage you need for your instance.
Advanced details — Expand the section to view the fields and specify any additional parameters for the instance.
Review the instance details in the Summary section on the right panel, and select Launch instance.
You see the success message along with the instance id. Select the instance id to view the instance and see the auto-assigned IP address.
Connecting to an instance
You need the auto-assigned IP address to connect to your instance. To find the IP address, in the navigation pane on the EC2 home page, select Instances. To view the complete details of your instance, including the IP address, select the instance id next to your instance name.
Open a terminal window.
Navigate to the directory containing your key pair.
Change the permissions of the key pair:
Connect to your instance using the key pair:
You're now connected to the AWS EC2 instance where EDB Postgres Advanced Server is installed.
Getting started with a cluster
This example steps you through getting started with an EDB Postgres Advanced Server cluster. It includes logging in, ensuring the installation and initial configuration was successful, connecting to your cluster, and creating the user password.
Set up the repository
If you need to upgrade EDB Postgres Advanced Server or install any other EDB products, you need to set up the EDB repository. Setting up the repository is a one-time task.
To set up the repository, go to EDB repositories and follow the instructions provided there.