Table of Contents | ||||
---|---|---|---|---|
|
Requirements:
AWS account
Internet connection
Overview
The steps given here are simple and are to help install Rocky Linux on AWS and installation of CCE, however, you must have an AWS account, without it, we won’t be able to install anything on this cloud computing service.
AWS account
Internet connection
.
AWS Instance Setup Steps
Log in to AWS and access the EC2 Dashboard
Here I am assuming that you already have created an account on Amazon Web services, hence now go to Ec2 Dashboard. Alternatively, you can use this link. https://ap-south-1.console.aws.amazon.com/ec2/v2/home.
...
Launch a New Instance
Once you are on the AWS Ec2 Dashboard, click on the Instances option from the left side given menu, and then hit the “Launch Instances” “Launch Instances” button.
...
After that this screen will open:
...
Put instance Name:
...
Choose Rocky Linux 8 Amazon Machine Image
Now, select “AWS Marketplace” and then in the search box type – Rocky Linux. Soon, you will see the official Rocky Linux 8 Amazon Machine Image to select.
Note: In case you face any problem while connecting the official Rocky Linux AMI then go for the “Rocky Linux 8 w/Latest Updates” Image offered by pro computers on the same page.
This AMI is also eligible to run on the Free tier of AWS, hence just click on the “Select” button. (Name is just an example below. Please use the a name such as Primary CCE)
After that hit the “Continue” button.
...
Chose an amazon machine image (AMI) and Clicked Click on AWS marketplace AMIs (304)
...
Choose Ec2 Instance Type
In this step, we will select the hardware resources we want to assign to our Rocky Linux Instance. You can use the free trial for the initial start and later scale the resource. However, if you want this Linux to start providing commercial services then select the resources- CPU, RAM, and other things as per the requirements. Here we are going for the Free Trail one.
Once you have selected, click on the “Review and Launch“.
...
Download an existing key pair or create a new one
To connect the created Rocky Linux Ec2 Instance remotely via SSH, we need a Key Pair. So, for that either use the existing one or simply select “Create a new key pair” and then give some name to your key, for example here we are giving “Rocky”. After that click on the “Download Key Pair” and the “Launch Instances” button.
Note: Save the Key pair somewhere safe…
Create Network setting
...
Configure storage
All the disk (storage) needs to be assigned only on root volume in case of CCE.
...
Review Rocky Linux Instance Launch
Here we can edit any present hardware resources, we want. Such as those who want to increase the Storage space that which is by default will be – 10 GB, need to hit the Edit button given in front of it. However, if you are already satisfied with the default settings then simply click on the “Launch” button.
...
After the above setting click on the lunch instance button which is shown in the above screenshot.
After that this screen will show:
...
After that click on connect button:
...
Setup Rocky Linux Instance
Open your local system command terminal or prompt and go where you keep pem file and use the following command syntax:
...
Note: rocky is the default username, not ec2-user or root because the image is not provided by Amazon itself. However, in the future, it would be.
...
Ensure that you become root instead of rocky user. You will do that by running the command “sudo su”
After that run this command for seceon server setup
#curl curl https://si.seceon.com:8444/repos/env/8.0.0/seceon-env-setup.txt --output ./seceon-env-setup.sh -k && bash ./seceon-env-setup.sh
Note: After finishing the above command server will restart and user rocky user automatically log out,.
Again you will need to a login to the AWS instance with seceon user. At this time, it will ask for a change password password. Please replace the “ec2-35-84-180-85.us-west-2.compute.amazonaws.com” in the command below with your own instance name.
“ssh seceon@ec2-35-84-180-85.us-west-2.compute.amazonaws.com”
...
After that server will restart again and the user needs to log in again with the seceon user and password which is are put in the above steps:.
...
Optional Installation of CCE
Please follow the link Installation of CCE to install CCE in this instance.
Verification
Verification can be done once the server is set up and we can see the install command.