2.3. Creating and automatically uploading images to the AWS Cloud AMI
You can create a RAW image by using the RHEL image builder and select Upload to AWS to automatically upload the image to the Amazon AWS Cloud AMI service provider.
Prerequisites
-
You must have
rootorwheelgroup user access to the system. - You have opened the RHEL image builder interface of the RHEL web console in a browser.
- You have created a RHEL image builder blueprint.
- You must have an Access Key ID configured in the AWS Identity and Access Management (IAM) account manager.
- You must have a writable AWS Simple Storage Service (S3) bucket prepared.
Procedure
- In the RHEL image builder dashboard, select your blueprint in blueprint name. Select the Images tab, and click Create Image.
From the Type drop-down menu list, select
Amazon Machine Image Disk (.raw), check Upload to AWS, and click Next.참고If you do not know your
Secret Key, generate a newAccess Key ID.-
Enter your
AWS access key IDandAWS secret access keyin the corresponding fields. Click Next. -
Enter the
Image name,Amazon S3 bucketname, andAWS region, then click Next. - Review the information and click Finish. Wait for the Image build complete status.
-
In the AWS console, navigate to Service→EC2, select the correct region, and verify your image shows
Availablestatus. - Select your image, click Launch, choose an instance type, and click Review and Launch.
Review instance details, click Launch, then select or create a key pair:
- To create a new key pair, select Create a new key pair, enter a name, and click Download Key Pair.
- Click Launch Instance and wait the instance status to change to running.
Click Connect, then use SSH to access your instance:
$ chmod 400 <your_instance_name>.pem$ ssh -i <your-instance_name>.pem \\ ec2-user@<your-instance-IP-address>-
Type
yesto confirm the connection.
-
Type
Verification
- Check if you can perform any actions while connected to your instance by using SSH.