To get familiar with the cloud environment, getting hands on with a prominent cloud service provider, I think of having some experience with Amazon Web Services (AWS). Although I have some familiarity with couple of AWS services like EC2 (Elastic Compute Cloud), S3 (Simple Storage Service) etc.
Starting off, first we need an AWS Account, for which I go for the student account as I am a Master student in Germany, So I just got the One year free account via AWS Educate. The best thing is they give you a One year free subsription for all the services available on free tier.
EC2, stands for Elastic Cloud Compute. It simply provides a scalable computing capacity in the Amazon Web Services (AWS) cloud. Using EC2 you don’t have to care about any configuration security, networking and managed storage. You can easily scale up or down your machines.
- It’s just a click away from you. One just have to chose type of machine, select the hardware specifications, memory consumption and security group according to the roles and policies defined accordingly.
- It also provides Amazon Machine Images (AMIs), that package the bits you need for your server (including the operating system and additional software). Moreover you can create snapshots of your machines (Instances).
- Secure logins and access via different user groups and secure key pairs. Furthermore Firewall options (different incoming and outgoing rules applied to the server using security groups).
- Public/Static IPv4 addresses available for all EC2 instances also termed as Elastic IP addresses.
- Many physical locations available for your resources, on different Regions and Availability Zones.
STEP-1 First of all, for launching a basic EC2 instance without any special configuration, one must have to follow these steps in order to launch a very basic EC2 instance. Go to AWS console and follow these simple steps.
STEP-2 Next you have to chose AMI (Amazon Machine Image) for your instance. which is the OS you want to have in your isntance, You have options for Ubuntu, OpenSuse, RedHat etc.
STEP-3 After that you have to chose the Instance type which is the speciic configuration for your machine which includes cores, CPU, memory and other things. If you are using free tier then you are eligible for t2.micro option.
STEP-4 Providing Instance Details is the next step to be done, for launching the basic instance you must not change any fields on this page, It contains network, IP, subnet mask options available for networking. Moreover it also contains IAM role options to be applied on the instance you are launching. For monitoring you can chose cloudwatch option provided, which is obviously for paid users, not for free tier.
STEP-5 Upcoming step is to provide storgae options for the instance, which is the size of the memory and the hard drive options available,
STEP-6 Next is to configure security groups for the instance you are launching.
- Type The protocol to open to network traffic. You can choose a common protocol, such as SSH (for a Linux instance), RDP (for a Windows instance), and HTTP and HTTPS to allow Internet traffic to reach your instance.
- Source is the other options, which is to specify from where you want to give access to your instance, let’s say if I input my IP address in the source option, then the instance can only be accessed via my IP address. Same as if I input/select the option to all, it can be accessed from all over the world, which is obviously not a good security practice. I can also provide custom IP addresses for this option in which I can specify those IP addresses to whom I want to give the access to.
FINAL STEP Finally you can launch the instance and see your instances in the running instance panel. When you click the Launch button, it will prompt you for the key-pair option. which will give you two options
- Create a New key pair : This option will create a new key pair for you to access the instance, make sure to save your private key properly in order to access the instance via keys.
- Choose an Existing key pair : This option will give you option to chose any existing key for you to access the instance, if you have already created the key.
You can easily access the Instance via SSH or putty client, example is shown below.
Your instance is ready to go now, Enjoy !
Originally published at https://takingchallenges.me on August 30, 2020.