3.3. Uploading a RHEL image to AWS by using the command line
To run a RHEL instance on Amazon Web Services (AWS), you must first upload a RHEL image to AWS. To configure and manage a RHEL EC2 instance on AWS, use the awscli2 utility.
3.3.1. Installing AWSCLI2 링크 복사링크가 클립보드에 복사되었습니다!
You can use the Amazon Web Services (AWS) command line interface awscli2 utility to configure and manage Red Hat Enterprise Linux (RHEL) images and Red Hat high availability (HA) cluster on AWS.
Prerequisites
- You have created a Red Hat account.
- You have signed up and set up an AWS account.
- You have access to an AWS Access Key ID and an AWS Secret Access Key. For details, see manage access keys.
Procedure
Install
awscli2:# dnf install awscli2
Verification
Verify the installation:
$ aws --version aws-cli/1.19.77 Python/3.6.15 Linux/5.14.16-201.fc34.x86_64 botocore/1.20.77Configure
awscli2for AWS credentials and settings:$ aws configure AWS Access Key ID [None]: AWS Secret Access Key [None]: Default region name [None]: Default output format [None]: