Launch an Amazon EC2 client instance for interacting with AWS CloudHSM
To interact with and manage your AWS CloudHSM cluster and HSM instances, you must be able to communicate with the elastic network interfaces of your HSMs. The easiest way to do this is to use an EC2 instance in the same VPC as your cluster. You can also use the following AWS resources to connect to your cluster:
Note
This guide provides a simplified example of how to connect an EC2 instance to your AWS CloudHSM cluster. For best practices around secure network configurations, refer to Secure access to your cluster.
The AWS CloudHSM documentation typically assumes that you are using an EC2 instance in the same VPC and Availability Zone (AZ) in which you create your cluster.
To create an EC2 instance
-
Open the EC2 Dashboard at https://console.aws.amazon.com/ec2/
. -
Select Launch instance. From the drop-down menu, choose Launch instance.
-
In the Name field, enter a name for your EC2 instance.
-
In the Applications and OS Images (Amazon Machine Image) section, choose an Amazon Machine Image (AMI) that corresponds to a platform CloudHSM supports. For more information, see AWS CloudHSM Client SDK 5 supported platforms.
-
In the Instance Type section, choose an instance type.
-
In the Key pair section, use an existing key pair or select Create new key pair and complete the following steps:
For Key pair name, enter a name for the key pair.
For Key pair type, choose a key pair type.
For Private key file format, choose the private key file format.
Select Create key pair.
Download and save the private key file.
Important
This is your only chance to save the private key file. Download and store the file in a safe place. You must provide the name of your key pair when you launch an instance. Additionally, you must provide the corresponding private key each time you connect to the instance and choose the key pair that you created when setting up.
-
In Network settings, select Edit.
-
For VPC, choose the VPC that you previously created for your cluster.
-
For Subnet, choose the public subnet that you created for the VPC.
-
For Auto-assign Public IP, choose Enable.
-
For Auto-assign IPv6 IP, choose Enable to use IPv6 connectivity with your clusters and the Dual-stack NetworkType. If you enable this option, update your Amazon EC2 instance's security group rules, VPC and subnet route tables, and network ACLs to allow IPv6 outbound traffic from the instance to the HSMs.
-
Choose Select an existing security group.
-
In Common security groups, select the default security group from the drop-down menu.
-
In Configure Storage, use the drop-down menus to choose a storage configuration.
-
In the Summary window, select Launch instance.
Note
Completing this step will start the process for creating your EC2 instance.
For more information about creating a Linux Amazon EC2 client, see Getting Started with Amazon EC2 Linux Instances. For information about connecting to the running client, see the following topics:
The Amazon EC2 user guide contains detailed instructions for setting up and using your Amazon EC2 instances. The following list provides an overview of available documentation for Linux and Windows Amazon EC2 clients:
-
To create a Linux Amazon EC2 client, see Getting Started with Amazon EC2 Linux Instances.
For information about connecting to the running client, see the following topics:
-
To create a Windows Amazon EC2 client, see Getting Started with Amazon EC2 Windows Instances. For more information about connecting to your Windows client, see Connect to Your Windows Instance.
Note
Your EC2 instance can run all of the AWS CLI commands contained in this guide. If the AWS CLI
is not installed, you can download it from AWS Command Line Interface