EC2 (Elastic Compute Cloud) is equivalent of servers (on-premises). There are many attributes we need to provide while creating an EC2; e.g. instance type, AMI id, subnet id, security group etc. This tutorial explains you above concepts in detail and shows you how to launch an EC2 in default VPC. (Click here to learn how to create a custom VPC)
Tenancy is a critical attribute to understand in case of EC2 instances. There are 3 tenancy models available:
- Shared (or Default)
- Dedicated Instances
- Dedicated Host
Many of the readers remain confused on the tenancy models of EC2. Learn them quickly in this video and understand when to use which Tenancy model.
An EC2 instance will always have a Private IP address. In addition to this it can be allocated a Public IP address as well. But, the Public IP changes if instance is stopped and started. It does not change on reboot though. If you want a Public IP which should not change on every stop & start, you can make use of Elastic IP. Elastic IP costs you only when it is not attached to an instance, or it is attached to a stopped instance. You should understand clearly the difference between 3 types of IP on AWS, please watch this video.
Along with EC2, an Elastic Network Interface (ENI) gets created. This is virtualized form of Network Interface Card (NIC). Every ENI will have a Private IP, which is called the primary IP of that ENI. You can add more secondary IPs on an ENI as well. You can attach multiple ENIs to an EC2 instance as well. The primary ENI can never be detached from an EC2 instance. You should learn how to work with ENI in the following video:
At last, in terms of EC2 you should understand the different pricing models available. There are 6 pricing models with EC2 instances and understanding them saves you from all the future bill related surprises. All 6 different models are explained here concisely.
Happy learning AWS !!! Please comment down for any doubts. Don't forget to SHARE with your friends.
No comments:
Post a Comment