Professional Documents
Culture Documents
Amazon EC2 is the main compute service of AWS, make sure you
know as much as you can about it with this cheat sheet.
ꞏ ꞏ ꞏ
Instance Types:
The instance type de몭nes the virtual hardware supporting an
Amazon EC2 instance.
here are dozens of instance types available, varying in the
following dimensions: Virtual CPUs (vCPUs), Memory, Storage
(size and type), Network performance. Instance types are
grouped into families based on the ratio of these values to
each other
the table below lists some of the families available:
ꞏ ꞏ ꞏ
ꞏ ꞏ ꞏ
ꞏ ꞏ ꞏ
Instance Lifecycle:
When you launch an instance, it enters the pending state and it
uses the speci몭ed AMI to launch.
it enters the running stat where you can start connecting to it
and use it.
you can stop and start your instance to try to 몭x a problem.
When you stop your instance, it enters the stopping state and
then the stopped state.
if you no longer need an instance, you can terminate it. As
soon as the status of an instance changes to shutting-down or
terminated, you stop incurring charges for that instance.
If you enable termination protection, you can’t terminate the
instance using the console, CLI, or API.
Termination protection does not work for instances that are
part of the auto-scaling group, launched as Spot instance or
when terminated by initiating shutdown command.
Data on an instance store is lost when the instance is stopped
or terminated. Instance store data survives an OS reboot.
An instance is scheduled to be retired when AWS detects an
irreparable failure of the underlying hardware hosting the
instance
Instance
Description Billed?
state
An instance enters the pending state when it
pending launches for the 몭rst time, or when it is NO
started after being in the stopped state.
running The instance is running and ready for use. YES
NO if
preparing
to stop
The instance is preparing to be stopped or
stopping YES if
stop-hibernated.
preparing
to
hibernate
The instance is shut down and cannot be
stopped NO
used.
Instance
Description Billed?
state
shutting-
The instance is preparing to be terminated. NO
down
terminated The instance has been permanently deleted NO
ꞏ ꞏ ꞏ
Cold HDD:
Lowest cost HDD volume designed for less frequently accessed
workloads.
volume can range in size from 500 GiB to 16 TiB, max IOPS per
volume is 250.
Scenarios where the lowest storage cost is important.
Cannot be a boot volume.
ꞏ ꞏ ꞏ
ꞏ ꞏ ꞏ
Security:
Virtual Firewall Protection (Security
groups):
AWS allows you to control tra몭c in and out of your instances
through virtual 몭rewalls called security groups.
Security groups allow you to control tra몭c based on port,
protocol, and source/destination.
Security groups are associated with instances when they are
launched. Every instance must have at least one security group
but can have more.
When an instance is associated with multiple security groups,
the rules are aggregated and all tra몭c allowed by each of the
individual groups is allowed.
Security groups are applied at the instance level.
IAM:
An IAM policy must grant or deny permissions to use one or
more Amazon EC2 actions.
you can use IAM roles to grant permissions to applications
running on your instances.
You cannot attach multiple IAM roles to a single instance, but
you can attach a single IAM role to multiple instances.
ꞏ ꞏ ꞏ
Networking:
Addressing an Instance:
an instance can be addressed upon creation in several ways:
Public Domain Name System (DNS) Name.
Public IP: unique address on the Internet that you
reserve independently and associate with an Amazon
EC2 instance.
Private IP addresses and Elastic Network Interfaces
(ENIs) are additional methods of addressing instances
that are available in the context of an Amazon VPC.
An Elastic IP address is a public IPv4 address, which is
reachable from the internet.
To use an Elastic IP address, you 몭rst allocate one to your
account, and then associate it with your instance or a network
interface.
You can disassociate an Elastic IP address from a resource, and
reassociate it with a di몭erent resource.
Placement Groups:
A placement group is a logical grouping of instances within a
single Availability Zone.
Placement groups enable applications to participate in a low-
latency, 10 Gbps network.
Placement groups are recommended for applications that
bene몭t from low network latency, high network throughput, or
both.
To fully use this network performance for your placement
group, choose an instance type that supports enhanced
networking and 10 Gbps network performance.
ꞏ ꞏ ꞏ
Monitoring:
You can monitor the status of your instances by viewing status
checks and scheduled events for your instances.
You can monitor your instances using Amazon CloudWatch,
which collects and processes raw data from Amazon EC2 into
readable, near real-time metrics.
By default, Amazon EC2 sends metric data to CloudWatch in 5-
minute periods.
You can use the CloudWatch agent to collect both system
metrics and log 몭les from Amazon EC2 instances.
CloudTrail captures all API calls for Amazon EC2 and Amazon
EBS as events, including calls from the console and from code
calls to the APIs.
ꞏ ꞏ ꞏ
ꞏ ꞏ ꞏ
Password
Remember Me
Log In
Notice: we keep updating this material.
You can report a mistake or suggest new points to add to this EC2
cheat sheet…let us know in the comment section.
Subscribe
Share on Facebook Share on Twitter
Previous Next
AWS Cheat Sheet - R AWS Cheat Sheet - Id
DS entity & Access Mana
gement (IAM)
DS entity & Access Mana
gement (IAM)
Leave a Reply
Your email address will not be published.
Comment
Name
Website
Save my name, email, and website in this browser for the next time I
comment.
Post Comment
Like us on Facebook
Awsboy
Follow Page
we talk AWS
contact us
Copyright 2021|AWSboy