eolas/neuron/7c141533-1806-4f5c-a70e-7527be05b1c5/Elastic_Compute_Cloud.md

38 lines
1.3 KiB
Markdown
Raw Normal View History

2024-12-09 18:34:15 +00:00
---
id:
tags:
- AWS
created: Monday, February 19, 2024 | 18:58
last_modified: Monday, February 19, 2024 | 18:58
since: just now
---
# Elastic Compute Cloud (EC2)
- Cloud-based or virtual server (virtual machine), basically a hypervisor
(compare [[zk/Docker_architecture]])
- It is virtual because you are not responsible for its physical implementation
- Still needs considerable configuration compared to a serverless
[[zk/Lambda_programming_model]]
- Like lambdas has the benefit of easy scaling: you can add compute capacity on
demand (elasticity)
The following needs to be considered:
- Naming
- Application and OS image (known as "Amazon Machine Image"):
- Which OS you want to use (Linux distribution, Windows, etc)
- Applications you want pre-installed
- Block device mapping
- Instance type an size (basically the type of processor and how powerful you
want it to be)
- An encrypted key-pair for login
- Your network (typically managed via Amazon VPC (Virtual Private Cloud)) and
network security
- Storage: size and type (eg. GP3)
- Location and latency
> EC2 is more expensive copared to serverless options. Accordingly it is better
> to run smaller servers (in terms of processor and memory) at higher capacity
> than larger servers under-capacity.