DEV Community

Cover image for Architecting Compute Infrastructure Using Amazon EC2
okunola babatunde
okunola babatunde

Posted on

Architecting Compute Infrastructure Using Amazon EC2

Hey, the advent of owing on-prem server, equipped with vast number of Air conditional, security maintenance cost, cost of installation, purchase of hardware, has been replaced with cloud technology known as virtualization. However, owning a computer system on your palm comes to negate high cost of expenses which fosters security, resilency, efficiency and scalability.
In today's article, i am going to basically walk you, a less tasky and very fast procedures on how to provision a test-ready linux EC2 instance.

Step1: On the Console Home page, search for EC2 in the search bar.
Image On the Console Home page, search for EC2 in the search bar.

Step2; On the Launch instance section, select Launch Instance.
Image On the Launch instance section, select Launch Instance.

Step3: Name your server as Linux-Production-Server
Image Give it a Name.

Step4: Application and OS Images (Amazon Machine Image) Info
An AMI contains the operating system, application server, and applications for your instance. If you don't see a suitable AMI below, use the search field or choose Browse more AMIs.For the purpose of learning and testing, my desire is Ubuntu linux distribution.
Image Application and OS Images (Amazon Machine Image)  Info<br>
An AMI contains the operating system, application server, and applications for your instance. If you don't see a suitable AMI below, use the search field or choose Browse more AMIs.

Incase, your choice distribution is not itemize here, you can search to pick your choice.
Image Application and OS Images (Amazon Machine Image)  Info<br>
An AMI contains the operating system, application server, and applications for your instance. If you don't see a suitable AMI below, use the search field or choose Browse more AMIs.

There are many distribution of Linux and for the purpose of practice and free tier subscription level, i have decided to choose Amazon Linux 2023 kernel.
Image Application and OS Images (Amazon Machine Image)  Info<br>
An AMI contains the operating system, application server, and applications for your instance. If you don't see a suitable AMI below, use the search field or choose Browse more AMIs.

Here, you can select your instance type
Image Here, you can select your instance type

Step5:Ensure to create a new key pin.You will use this key pair to securely connect to your instance. Ensure that you have access to the selected key pair before you launch the instance.

Click on the New key pair and name it "Linux key". Live other settings default and click on create.

  • the key pair has been downloaded into downloads file. Keep it intact for once its tampered with, it becomes useless.

Step6: Go to network settings and leave other settings default.
Image the key pair ha

Step7: Configure your storage depending on your workloads

Step8: Click on the "Lunch instance" button
Image Click on the

Step9: Connect to your instance
Image Connect to your instance

Step10: Down the connect section, scrow down and select "connect"
Image Connect to your instance

You would notice from here, that the server named Linux-Production- Sever has been connected with the internet.
 .
With this, are successfully connected to our server. However, to log out of this server, you need to type the command prompt "exit". Now, the server is logged out.
Image Now, the server is logged out.

  • For the learning purpose, in other to save cost, it is advised to always shutdown the EC2 created for the purpose of unnecessary cost incurred. That leads me to re-visit the log out in the proper way.

  • Go back to the Console page and select the EC2 you created
    Image Go back to the Consol

  • Select EC2 created
    Image Select EC2 created

  • In other to delete your instance, click on "Instant State"
    Image Select EC2 created

  • From dropdown menu, select terminate to delete your resources.
    Image Select EC2 created

  • when you click on delete from prop down menu, this prompt will appear, then click on it to terminate the instance.
    Image Select EC2 created

  • Now the instance is deleted.
    Image Select EC2 created

  • To confirm your deletion is effected, click on refresh
    Image Select EC2 created

  • EC2 deleted
    Image EC2 deleted<br>

Top comments (0)