AWS
優缺
優點
缺點
EC2
效能
- m: General purpose
- t: Burstable general purpose CPU積分
- c: compute intensive
- r: memory intensive
postfix |
vCPU (threads) |
Memory (GiB) |
large |
2 |
8 |
xlarge |
4 |
16 |
2xlarge |
8 |
32 |
4xlarge |
16 |
64 |
… |
… |
… |
Each thread is represented as a virtual CPU (vCPU) on the instance.
T4g, M6g: AWS Graviton2 core
else: Intel Xeon / AMD EPYC core
價格
- 12 個月免費
- 750 小時/月
- t2.micro 或 t3.micro 執行個體
- 可隨需: 以秒計費(至少 60 秒),但比較貴(綁約的 1.5 倍左右)
- 以 亞太地區(香港) 為例
Instance |
USD/Hr |
CPU core |
t3.2xlarge |
0.4672 |
高達 3.1 GHz Intel Xeon Platinum 處理器 |
m5.2xlarge |
0.528 |
3.1 GHz Intel Xeon® Platinum 8175M |
m6g.2xlarge |
0.424 |
具有 64 位元 Arm 核心的客製化 AWS Graviton2 處理器 |
t4g.2xlarge |
0.3712 |
具有 64 位元 Arm 核心的客製化 AWS Graviton2 處理器 |
儲存
- EBS: Amazon Elastic Block Store
- S3: Simple Storage Service
- EFS: Amazon Elastic File System
磁碟區類型 (EBS)
- SSD: io2, io1, gp3, gp2
- HDD: st1, sc1
- st1: 適合經常存取的情況
- sc1: 最便宜,適合存取次數少的情況
價格 (EBS)
Iype |
USD/GiB/Month |
io2 |
0.1518 |
io1 |
0.1518 |
gp3 |
0.1056 |
gp2 |
0.132 |
st1 |
0.0594 |
sc1 |
0.0198 |
計算方式複雜,見計算機
Lightsail
範例
- EC2-m5.2xlarge (8 vCPU + 32GB RAM)
- EBS-st1 (1TB) => 按月計費
- 用 24 小時
項目 |
價格 |
m5.2xlarge |
0.528 * 24(hr) = 12.672 |
st1 |
0.0594 * 1024(GB) = 60.8256 |
總共 |
73.4976 USD |