Elastic Compute Cloud (Amazon EC2) is a web service that provides resizable compute capacity in the cloud. EC2 reduces the time required to obtain and boot new server instances to minutes, allowing you to quickly scale capacity, whether up or down, as your computing requirements change.
EC2 Pricing Models
1 On Demand
Allows you to pay a fixed rate by the hour (or by the second) with no commitment or up-front payment
Applications with short term, or unpredictable workloads that cannot be interrupted
Applications that are being developed or tested on EC2 for the first time
2 Reserved
Provides capacity reservation, and offers a significant discount on the hourly charge for an instance. Contract Terms are 1 year or 3 years with upfront payments
Applications that require reserved capacity.
Steady state or predictable usage
Standard Reserved instances
Offer up to 75% off on demand instances. The more you pay up front and longer the contract, the more the discount
Convertible Reserved Instances
Offer up to 54% off on demand capability to change the attributes of the RI as long as the exchange results in the creation of Reserved Instances of equal or greater value
Scheduled Reserved Instances
Available to launch within time windows you reserve.
3 Spot
Enables you to bid whatever price you want for instance capacity, providing for even greater savings if your application has flexible start and end times
Applications that are only feasible at very low compute prices
Urgent needed for users
4 Dedicated Hosts
Physical EC2 server dedicated for your use. Dedicated hosts can help you reduce costs by allowing you to use your existing server-bound software licenses (Oracle, for example)
Useful for regulatory requirements that may not support multi-tenant virtualization
Great for licensing which does not support multi-tenancy or cloud deployments
Can be purchased on-demand or reserved
EC2 Instance Type (Mnemonic)
F - FPGA
I - IOPS
G – Graphics
H – High Disk Throughput
T – Cheap General Purpose (T2 Micro)
D - Density
R - RAM
M – Main choice for general purpose apps
C - Compute
P – Graphics (pictures)
X – Extreme Memory
Z – Extreme Memory AND CPU
A – Arm-based workloads
U – Bare Metal
If the Spot instance is terminated by Amazon EC2, you will not be charged for a partial hour of usage. However, if you terminate the instance yourself, you will be charged for any hour in which the instance ran.
Termination Protection is turned off by default, you must turn it on.
On an EBS-backed instance, the default action is for the root EBS volume to be deleted when the instance is terminated.
EBS Root Volumes of your DEFAULT AMI's CAN be encrypted. You can also use a third party tool (such as bit locker etc) to encrypt the root volume, or this can be done when creating AMI's in the AWS console or using the API.
Security Groups
All inbound traffic is blocked by default
All Outbound traffic is allowed
Changes to Security Groups take effect immediately
You can have any number of EC2 instances within a security group
You can have multiple security groups attached to EC2 instances
Security Groups are STATEFUL.
If you create an inbound rule allowing traffic in, that traffic is automatically allowed back out again.
You cannot block specific IP addresses using Security Groups, instead use Network Access Control Lists
You can specify allow rules, but not any deny rules
Comentarios