AWS Learning
Compute

AWS Outposts

Hybrid Cloud, AWS infrastructure tại on-premises data center

Tổng quan

AWS Outposts là dịch vụ cho phép bạn chạy AWS infrastructure và services ngay tại data center của bạn (on-premises). Đây là giải pháp Hybrid Cloud thực sự của AWS.

┌─────────────────────────────────────────────────────────────────────────┐
│                         AWS Outposts Architecture                       │
├─────────────────────────────────────────────────────────────────────────┤
│                                                                         │
│   ┌─────────────────────┐          ┌─────────────────────────────────┐  │
│   │   AWS Region        │          │   Your Data Center              │  │
│   │   ┌─────────────┐   │   VPN/   │   ┌─────────────────────────┐   │  │
│   │   │ Parent AZ   │   │  Direct  │   │    AWS Outposts Rack    │   │  │
│   │   │             │◄──┼──Connect─┼──►│                         │   │  │
│   │   │ Control     │   │          │   │  ┌─────┐ ┌─────┐ ┌────┐ │   │  │
│   │   │ Plane       │   │          │   │  │ EC2 │ │ EBS │ │ S3 │ │   │  │
│   │   └─────────────┘   │          │   │  └─────┘ └─────┘ └────┘ │   │  │
│   │                     │          │   │  ┌─────┐ ┌─────┐ ┌────┐ │   │  │
│   │                     │          │   │  │ ECS │ │ RDS │ │EKS │ │   │  │
│   │                     │          │   │  └─────┘ └─────┘ └────┘ │   │  │
│   │                     │          │   └─────────────────────────┘   │  │
│   └─────────────────────┘          └─────────────────────────────────┘  │
│                                                                         │
└─────────────────────────────────────────────────────────────────────────┘

Tại sao cần AWS Outposts?

Use Cases chính

Use CaseMô tả
Low LatencyỨng dụng cần latency cực thấp (< 10ms) với local users/devices
Data ResidencyDữ liệu phải ở trong quốc gia/khu vực theo quy định pháp luật
Local Data ProcessingXử lý dữ liệu tại chỗ trước khi gửi lên cloud
MigrationBước chuyển tiếp từ on-prem lên cloud

So sánh với các giải pháp khác

FeatureAWS OutpostsAWS Local ZonesAWS Wavelength
LocationYour data centerAWS-managed facility near citiesTelecom 5G edge
OwnershipAWS owns & managesAWS owns & managesAWS owns & manages
ControlYou control physical securityAWS controls allAWS controls all
Primary UseHybrid cloud, data residencyUltra-low latency for cities5G mobile apps
LatencyDepends on your setupSingle-digit msSingle-digit ms

Hai loại Outposts

1. Outposts Rack (42U)

┌──────────────────────────────────────┐
│         Outposts Rack (42U)          │
├──────────────────────────────────────┤
│  ┌────────────────────────────────┐  │
│  │     Compute Servers            │  │
│  │   (EC2 Instances)              │  │
│  ├────────────────────────────────┤  │
│  │     Storage                    │  │
│  │   (EBS, S3 on Outposts)        │  │
│  ├────────────────────────────────┤  │
│  │     Networking                 │  │
│  │   (VPC, ALB, etc.)             │  │
│  ├────────────────────────────────┤  │
│  │     Power & Cooling            │  │
│  │   (Your responsibility)        │  │
│  └────────────────────────────────┘  │
│                                      │
│  Size: Standard 42U rack             │
│  Power: 5-15 kW per rack             │
│  Network: 1-100 Gbps to AWS Region   │
└──────────────────────────────────────┘
  • Full rack hoặc partial rack (1U, 2U servers)
  • Hỗ trợ nhiều AWS services nhất
  • Phù hợp cho enterprise data centers

2. Outposts Servers (1U/2U)

┌──────────────────────────────────────┐
│      Outposts Server (1U hoặc 2U)    │
├──────────────────────────────────────┤
│  • Form factor nhỏ gọn               │
│  • Phù hợp không gian hạn chế        │
│  • Chạy EC2 và EBS                   │
│  • Retail stores, branch offices     │
└──────────────────────────────────────┘
  • 1U hoặc 2U server nhỏ gọn
  • Hỗ trợ ít services hơn (EC2, EBS)
  • Phù hợp cho edge locations (cửa hàng, chi nhánh)

AWS Services trên Outposts

Services được hỗ trợ

CategoryServices
ComputeEC2, ECS, EKS
StorageEBS, S3 on Outposts
DatabaseRDS, ElastiCache
NetworkingVPC, ALB, Route 53 Resolver
AnalyticsEMR
MLSageMaker

S3 on Outposts

┌─────────────────────────────────────────────────────────────────┐
│                      S3 on Outposts                             │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  ┌───────────────────┐     ┌───────────────────────────────┐    │
│  │   S3 on Outposts  │     │   S3 Regional (Standard)      │    │
│  │                   │     │                               │    │
│  │  • Local storage  │     │  • Storage in AWS Region      │    │
│  │  • Access Points  │     │  • Full S3 features           │    │
│  │  • Bucket policy  │     │  • Cross-region replication   │    │
│  └───────────────────┘     └───────────────────────────────┘    │
│                                                                 │
│  Key Differences:                                               │
│  • S3 on Outposts: Data stays LOCAL                             │
│  • Uses Access Points (required) instead of bucket URLs         │
│  • Limited storage capacity (based on Outpost config)           │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Network Connectivity

Kết nối đến AWS Region

┌─────────────────────────────────────────────────────────────────────────┐
│                     Outposts Network Connectivity                       │
├─────────────────────────────────────────────────────────────────────────┤
│                                                                         │
│   Your Data Center                              AWS Region              │
│   ┌───────────────────┐                    ┌───────────────────┐        │
│   │                   │                    │                   │        │
│   │   ┌───────────┐   │   Service Link     │   ┌───────────┐   │        │
│   │   │ Outposts  │   │═══════════════════►│   │ Control   │   │        │
│   │   │  Rack     │   │  (Encrypted)       │   │ Plane     │   │        │
│   │   │           │   │                    │   └───────────┘   │        │
│   │   │           │   │   Local Gateway    │                   │        │
│   │   │           │◄──┼───────────────────►│   VPC Subnets     │        │
│   │   └───────────┘   │  (Data traffic)    │                   │        │
│   │                   │                    │                   │        │
│   └───────────────────┘                    └───────────────────┘        │
│                                                                         │
│   Connection Options:                                                   │
│   1. AWS Direct Connect (Recommended - dedicated, consistent)           │
│   2. VPN over Internet (Backup option)                                  │
│                                                                         │
└─────────────────────────────────────────────────────────────────────────┘
  • Encrypted connection đến AWS Region
  • Dùng cho management và control plane
  • Bắt buộc phải có kết nối liên tục

Local Gateway (LGW)

  • Routing giữa Outposts và on-premises network
  • Tương tự Internet Gateway trong VPC
  • Cho phép local resources truy cập Outposts

Tại sao Outposts cần kết nối đến AWS Region?

[!NOTE] Đây là câu hỏi quan trọng: Nếu Outposts chạy tại data center của tôi, tại sao vẫn cần kết nối đến AWS Region?

Control Plane vs Data Plane

┌─────────────────────────────────────────────────────────────────────────────┐
│                    AWS Outposts - Control vs Data Plane                     │
├─────────────────────────────────────────────────────────────────────────────┤
│                                                                             │
│   Your Data Center                           AWS Region                     │
│   ┌────────────────────────┐                ┌─────────────────────────┐     │
│   │     OUTPOSTS           │                │                         │     │
│   │  ┌──────────────────┐  │   Service Link │  ┌───────────────────┐  │     │
│   │  │   DATA PLANE     │  │◄══════════════►│  │  CONTROL PLANE    │  │     │
│   │  │                  │  │   (Encrypted)  │  │                   │  │     │
│   │  │  • EC2 chạy apps │  │                │  │  • API Gateway    │  │     │
│   │  │  • EBS lưu data  │  │                │  │  • IAM Auth       │  │     │
│   │  │  • S3 storage    │  │                │  │  • CloudWatch     │  │     │
│   │  │  • Network flows │  │                │  │  • Billing        │  │     │
│   │  │                  │  │                │  │  • Provisioning   │  │     │
│   │  └──────────────────┘  │                │  │  • Updates        │  │     │
│   │                        │                │  └───────────────────┘  │     │
│   └────────────────────────┘                └─────────────────────────┘     │
│                                                                             │
│   DATA stays LOCAL ✅                        MANAGEMENT from AWS ✅         │
│                                                                             │
└─────────────────────────────────────────────────────────────────────────────┘

Lý do chính: AWS quản lý và vận hành Outposts từ xa!

PhầnChạy ở đâuChức năng
Control PlaneAWS RegionAPI, authentication, provisioning, monitoring, updates
Data PlaneYour DC (Outposts)Workloads, data, network traffic

Kết nối đến AWS Region dùng cho:

Mục đíchChi tiết
Authentication & AuthorizationIAM validates credentials, kiểm tra permissions
API CallsMọi lệnh aws ec2, aws s3... đều đi qua Region
Monitoring & LoggingCloudWatch metrics, CloudTrail logs gửi về Region
Software UpdatesAWS tự động cập nhật firmware, patches
Billing & MeteringTracking usage để tính tiền
AWS Services IntegrationRoute 53, CloudFormation, Systems Manager...

Ví dụ: Tạo EC2 instance trên Outposts

   You                  AWS Region              Your Outposts
    │                       │                        │
    │ aws ec2 run-instances │                        │
    │ ─────────────────────►│                        │
    │                       │  IAM check ✓           │
    │                       │  Create command        │
    │                       │───────────────────────►│
    │                       │                        │ Instance created
    │                       │◄───────────────────────│ (runs LOCALLY)
    │       Success         │                        │
    │◄──────────────────────│                        │
    │                       │                        │
    
→ Instance chạy và data lưu LOCAL trên Outposts của bạn!

Quản lý Outposts - Giống hệt AWS Cloud!

[!IMPORTANT] Điểm mạnh lớn nhất của Outposts: Bạn dùng CÙNG Console, CLI, APIs, Tools như khi làm việc với AWS Cloud!

┌─────────────────────────────────────────────────────────────────────────────┐
│                    Quản lý Outposts - GIỐNG HỆT AWS Cloud                   │
├─────────────────────────────────────────────────────────────────────────────┤
│                                                                             │
│   Bạn dùng:                                                                 │
│   ┌─────────────────┐  ┌─────────────────┐  ┌─────────────────────────────┐ │
│   │  AWS Console    │  │   AWS CLI       │  │   AWS SDK / IaC             │ │
│   │  (Web Portal)   │  │                 │  │   (CDK, Terraform, CF)      │ │
│   └────────┬────────┘  └────────┬────────┘  └─────────────┬───────────────┘ │
│            │                    │                        │                  │
│            └────────────────────┼─────────────────────────┘                 │
│                                │                                            │
│                                 ▼                                           │
│                    ┌───────────────────────┐                                │
│                    │     AWS Region        │                                │
│                    │     (Control)         │                                │
│                    └───────────┬───────────┘                                │
│                                │                                            │
│              ┌─────────────────┼─────────────────┐                          │
│              ▼                                   ▼                          │
│   ┌──────────────────┐              ┌──────────────────┐                    │
│   │  EC2 trên Cloud  │              │  EC2 trên        │                    │
│   │  (AWS Region)    │              │  OUTPOSTS        │                    │
│   └──────────────────┘              │  (Your DC)       │                    │
│              └───────────────────────────────────┘                          │
│                                                                             │
│   ✅ CÙNG Console  ✅ CÙNG CLI  ✅ CÙNG APIs  ✅ CÙNG Tools                 │
│                                                                             │
└─────────────────────────────────────────────────────────────────────────────┘

So sánh cách tạo EC2:

# Tạo EC2 trên Cloud (Region)
aws ec2 run-instances \
  --subnet-id subnet-abc123  # Subnet trong VPC thường
 
# Tạo EC2 trên Outposts - CHỈ KHÁC SUBNET!
aws ec2 run-instances \
  --subnet-id subnet-xyz789  # Subnet được associate với Outposts

Bạn chỉ cần chọn subnet thuộc Outposts → Instance tự động chạy trên hardware tại DC của bạn!

Lợi ích:

  • Không cần học tool mới - dùng AWS Console quen thuộc
  • Code không cần thay đổi - cùng APIs, SDKs
  • IaC vẫn hoạt động - Terraform, CDK, CloudFormation
  • Team không cần training - workflow giống hệt

Pricing Model

Chi phí bao gồm

ComponentMô tả
Outposts capacityTrả theo 3-year commitment (All Upfront, Partial, No Upfront)
Data transferData transfer OUT từ Outposts
Direct ConnectNếu sử dụng Direct Connect
Power & CoolingBạn tự chi trả
Physical spaceBạn tự chi trả

Không có chi phí thêm cho

  • EC2 instances chạy trên Outposts
  • EBS volumes trên Outposts
  • S3 storage trên Outposts (đã bao gồm trong capacity)

So sánh Outposts vs Hybrid Solutions khác

┌────────────────────────────────────────────────────────────────────────────┐
│                    Hybrid Cloud Solutions Comparison                       │
├────────────────────────────────────────────────────────────────────────────┤
│                                                                            │
│  ┌─────────────────┐  ┌─────────────────┐  ┌─────────────────────────────┐ │
│  │  AWS Outposts   │  │  VMware Cloud   │  │  Azure Stack / Google       │ │
│  │                 │  │  on AWS         │  │  Anthos                     │ │
│  ├─────────────────┤  ├─────────────────┤  ├─────────────────────────────┤ │
│  │ • Native AWS    │  │ • VMware tools  │  │ • Multi-cloud focus         │ │
│  │ • Same APIs     │  │ • vSphere, NSX  │  │ • K8s-based                 │ │
│  │ • AWS managed   │  │ • Hybrid VMware │  │ • Different APIs            │ │
│  │ • Your DC       │  │ • AWS Region    │  │                             │ │
│  └─────────────────┘  └─────────────────┘  └─────────────────────────────┘ │
│                                                                            │
└────────────────────────────────────────────────────────────────────────────┘

High Availability & Disaster Recovery

HA Considerations

┌─────────────────────────────────────────────────────────────────────────┐
│                    Outposts HA Architecture                             │
├─────────────────────────────────────────────────────────────────────────┤
│                                                                         │
│   Primary Site                          Secondary Site                  │
│   ┌─────────────────┐                  ┌─────────────────┐              │
│   │  Outposts #1    │                  │  Outposts #2    │              │
│   │  ┌───────────┐  │                  │  ┌───────────┐  │              │
│   │  │ App + DB  │  │  ──Replication─► │  │ Standby   │  │              │
│   │  └───────────┘  │                  │  └───────────┘  │              │
│   └────────┬────────┘                  └────────┬────────┘              │
│            │                                   │                        │
│            └──────────┬─────────────────────────┘                       │
│                      │                                                  │
│                       ▼                                                 │
│               ┌───────────────┐                                         │
│               │  AWS Region   │                                         │
│               │  (Control)    │                                         │
│               └───────────────┘                                         │
│                                                                         │
│   Best Practices:                                                       │
│   • Deploy across multiple Outposts                                     │
│   • Use AWS Region as DR target                                         │
│   • Replicate data to S3 in Region                                      │
│                                                                         │
└─────────────────────────────────────────────────────────────────────────┘

Disconnected Operation

Khi mất kết nối với AWS Region:

FeatureBehavior
Running instancesTiếp tục chạy bình thường
Local data accessVẫn hoạt động
New instance launches❌ Không thể
API calls to AWS❌ Không thể
AuthenticationCached credentials work temporarily

Exam Tips (SAA-C03)

[!IMPORTANT] Những điểm cần nhớ cho kỳ thi:

  1. Outposts = AWS infrastructure tại data center của bạn
  2. Cần kết nối liên tục đến AWS Region (Direct Connect hoặc VPN)
  3. Use cases chính: Low latency, data residency, hybrid cloud
  4. 2 loại: Rack (42U, full services) và Server (1U/2U, EC2+EBS only)
  5. S3 on Outposts dùng Access Points, không dùng bucket URL như S3 thường
  6. Pricing: 3-year commitment, bạn trả power & cooling

Câu hỏi thường gặp

ScenarioAnswer
Cần chạy AWS tại on-prem với latency thấpAWS Outposts
Cần data residency trong nướcAWS Outposts
Cần S3-compatible storage tại on-premS3 on Outposts
Cần hybrid cloud với VMware toolsVMware Cloud on AWS
Cần ultra-low latency cho mobile 5GAWS Wavelength
Cần low latency cho city usersAWS Local Zones

Tổng kết

┌─────────────────────────────────────────────────────────────────────────┐
│                      AWS Outposts - Summary                             │
├─────────────────────────────────────────────────────────────────────────┤
│                                                                         │
│  ✅ WHAT: AWS infrastructure tại data center của bạn                    │
│                                                                         │
│  ✅ WHY:                                                                │
│     • Low latency requirements                                          │
│     • Data residency compliance                                         │
│     • Hybrid cloud architecture                                         │
│                                                                         │
│  ✅ HOW:                                                                │
│     • AWS ships & installs hardware                                     │
│     • AWS manages & maintains                                           │
│     • You provide power, cooling, space, network                        │
│                                                                         │
│  ✅ TYPES:                                                              │
│     • Outposts Rack (42U) - Full services                               │
│     • Outposts Server (1U/2U) - EC2 + EBS only                          │
│                                                                         │
│  ✅ SERVICES: EC2, EBS, S3, ECS, EKS, RDS, ElastiCache, ALB...          │
│                                                                         │
└─────────────────────────────────────────────────────────────────────────┘

Tài liệu tham khảo