How are you all ?? today I am going to explain you the steps to launch new instances using AWS console. If you are new to AWS and if you are eligible to claim AWS free tier services, I am sure that this article will help you a lot. AWS Free tier covers free service of single t2.micro instance for 12 months. Lets utilize this opportunity to learn new things 🙂 Happy learning ?
Elastic Cloud Compute
Sign into your AWS account and choose EC2 from services
In EC2 Management console you will see Instances menu (click + to extract instance
menu) (or) select Launch Instance option under Create Instance
#1 Choose an Amazon Machine Image (AMI)
AMI is nothing but a pre-defined image file provided by Amazon which help us to choose operating system, platforms or some customized built packages. In this example, I am going to use Amazon Linux AMI (custom built provided by Amazon) which supports ENA (Enhanced Network Adapter) and HVM type virtualization.
#2 Choose an Instance Type
It is important to choose instance type wisely based on your requirements like CPU core(s), physical memory, virtualization type, enhanced network adapter support, volume type, etc. In this example I have chosen t2.micro which comes under AWS free tier programme. You can also compare the instance specifications here.
#3 Configure Instance Details
Under this section, we should provide details like VPC network ID, number of instances to launch, request for spot instances, IAM role, shutdown behaviour, instance terminate protection and monitoring, etc. Now a days it is mandatory to choose VPC while launching instances. If you are not aware of creating customized VPC, then you can use default one ?
#4 Add Storage
In this section, it allows us to choose optimized disk volume size for root volume. If you wish adding new mount points, then you can simply create new volume as needed 💡
#5 Add Tags
Tagging plays vital role in real time environment to classify resources based on environment, modules, BU, owner, etc., It depends! Say if your environment has several hundreds of resources and you want to classify them based on environment (like prod, stage, dev, qa, testing) you can make it possible by simply introducing tag value like env. It is to be noted that tagging depends according to your environment . We can add tagging as we wish. It is like adding filter to your resources ? In this example, I have used name tag to identify the resource name ?
#6 Configure Security Group
Security group is used to manage firewall rules for the launched instances. In other words, it is used to control instances’ inbound | outbound rules in the network. Say if you want to white list SSH port for an instance then you should add rule under inbound rules. Same applies for outbound rules. By default outbound rules are white listed for all all. You should customize as needed ?
#7 Review Instance Launch
That’s all 🙂 this is the last step to review selected specs before launching instance(s). Once you review the selected specs, you will be prompted to choose key-pair to login instances. Create new key-pair if you don’t have existing key-pair with you to login and acknowledge it to launch instance(s)
After clicking launch instances, it will show you instance ID details. You can also use this detail to filter newly launched instance under EC2 instance console
It is to be noted that AWS Free Tier includes 750 hours of Linux and Windows t2.micro instances each month for one year. To stay within the Free Tier, use only EC2 Micro instances. For more info, check AWS Official page