AWS Learning
Account Management

AWS Control Tower

Landing Zone, Guardrails (Preventive/Detective/Proactive), Account Factory, Automated Governance

1. Tổng quan

AWS Control Tower là dịch vụ cung cấp cách dễ nhất để thiết lập và quản trị (govern) một môi trường AWS multi-account an toàn, tuân thủ best practices. Control Tower được xây dựng trên nền tảng AWS Organizations và tự động hóa những gì bạn phải làm thủ công khi chỉ dùng Organizations.

Control Tower giải quyết vấn đề gì?

Vấn đề khi chỉ dùng OrganizationsGiải pháp với Control Tower
Phải tự tạo OU structureLanding Zone tự động set up best-practice structure
Phải tự viết SCPs từ đầuGuardrails sẵn có (Preventive, Detective, Proactive)
Phải tự tạo và configure accountsAccount Factory tự động provisioning
Không có dashboard tổng quan complianceControl Tower Dashboard hiển thị compliance status
Best practices phải tự researchBuilt-in blueprints theo AWS Well-Architected
┌─────────────────────────────────────────────────────────────────────────────┐
│                          AWS Control Tower                                  │
├─────────────────────────────────────────────────────────────────────────────┤
│                                                                             │
│  ┌──────────────┐   ┌──────────────┐   ┌──────────────┐   ┌────────────┐    │
│  │  Landing     │   │  Guardrails  │   │   Account    │   │ Dashboard  │    │
│  │  Zone        │   │  (Controls)  │   │   Factory    │   │            │    │
│  │              │   │              │   │              │   │            │    │
│  │  Pre-built   │   │  Preventive  │   │  Automated   │   │ Compliance │    │
│  │  multi-acct  │   │  Detective   │   │  account     │   │ overview   │    │
│  │  environment │   │  Proactive   │   │  creation    │   │            │    │
│  └──────────────┘   └──────────────┘   └──────────────┘   └────────────┘    │
│                                                                             │
│  Built on top of:                                                           │
│  ┌─────────────────────────────────────────────────────────────────────┐    │
│  │  AWS Organizations │ AWS Service Catalog │ AWS IAM Identity Center  │    │
│  │  AWS Config        │ AWS CloudTrail      │ AWS CloudFormation       │    │
│  └─────────────────────────────────────────────────────────────────────┘    │
│                                                                             │
└─────────────────────────────────────────────────────────────────────────────┘

2. Kiến trúc Landing Zone

Landing Zone là môi trường multi-account được thiết lập sẵn theo best practices. Khi bạn bật Control Tower, nó tự động tạo:

2.1. Landing Zone Structure

┌─────────────────────────────────────────────────────────────────────────────┐
│                         Landing Zone Structure                              │
├─────────────────────────────────────────────────────────────────────────────┤
│                                                                             │
│                         ┌───────────────────┐                               │
│                         │       ROOT        │                               │
│                         │  Management Acct  │                               │
│                         └────────┬──────────┘                               │
│                                  │                                          │
│            ┌─────────────────────┼──────────────────────┐                   │
│            │                     │                      │                   │
│     ┌──────▼──────┐     ┌───────▼───────┐     ┌───────▼───────┐             │
│     │ Security OU │     │  Sandbox OU   │     │ Custom OUs... │             │
│     │  (Required) │     │  (Optional)   │     │               │             │
│     └──────┬──────┘     └───────┬───────┘     └───────────────┘             │
│            │                    │                                           │
│     ┌──────┴──────┐     ┌──────┴──────┐                                     │
│     │             │     │             │                                     │
│  ┌──▼──────────┐ ┌▼────────────┐  ┌──▼──────────┐                           │
│  │ Log Archive │ │Security     │  │  Developer  │                           │
│  │ Account     │ │Audit Acct   │  │  Accounts   │                           │
│  │             │ │(optional)   │  │             │                           │
│  │ CloudTrail  │ │ GuardDuty   │  │             │                           │
│  │ Config Logs │ │ Sec Hub     │  │             │                           │
│  │ (Immutable) │ │ Inspector   │  │             │                           │
│  └─────────────┘ └─────────────┘  └─────────────┘                           │
│                                                                             │
└─────────────────────────────────────────────────────────────────────────────┘

2.2. Thành phần được tạo tự động

Thành phầnMô tả
Management AccountAccount chạy Control Tower, quản lý org
Security OUOU bắt buộc chứa Log Archive và Audit accounts
Log Archive AccountLưu trữ centralized logs (CloudTrail, Config) - immutable
Audit Account(Tùy chọn) Cross-account access cho security audit
Sandbox OU(Tùy chọn) Cho developer experimentation
IAM Identity CenterSingle Sign-On cho tất cả accounts
CloudTrail Organization TrailLogging cho toàn org
AWS ConfigConfiguration recording cho compliance

[!IMPORTANT] Landing Zone cần khoảng 60 phút để thiết lập lần đầu. Sau khi xong, bạn có ngay môi trường multi-account sẵn sàng sử dụng.


3. Guardrails (Controls)

Guardrails (còn gọi là Controls) là các rules tự động đảm bảo môi trường AWS tuân thủ policies. Có 3 loại:

3.1. Phân loại Guardrails

┌─────────────────────────────────────────────────────────────────────────────┐
│                        Guardrails (Controls)                                │
├─────────────────────────────────────────────────────────────────────────────┤
│                                                                             │
│  ┌─────────────────────────────────────────────────────────────────────┐    │
│  │  🚫 PREVENTIVE                                                      │    │
│  │  ───────────────────────────────────────────────────────────        │    │
│  │  Implemented via: SCPs / Declarative Policies                       │    │
│  │  Action: NGĂN CHẶN hành động trước khi xảy ra                       │    │
│  │  Example: "Không cho phép tạo S3 bucket không encrypt"              │    │
│  │  Status: Enforced / Not enabled                                     │    │
│  └─────────────────────────────────────────────────────────────────────┘    │
│                                                                             │
│  ┌─────────────────────────────────────────────────────────────────────┐    │
│  │  🔍 DETECTIVE                                                       │    │
│  │  ───────────────────────────────────────────────────────────        │    │
│  │  Implemented via: AWS Config Rules                                  │    │
│  │  Action: PHÁT HIỆN vi phạm sau khi xảy ra (alert)                   │    │
│  │  Example: "Phát hiện S3 bucket có public access"                    │    │
│  │  Status: Clear / In violation                                       │    │
│  └─────────────────────────────────────────────────────────────────────┘    │
│                                                                             │
│  ┌─────────────────────────────────────────────────────────────────────┐    │
│  │  ⚡ PROACTIVE                                                       │    │
│  │  ───────────────────────────────────────────────────────────        │    │
│  │  Implemented via: CloudFormation Hooks                              │    │
│  │  Action: CHẶN resource creation nếu không comply                    │    │
│  │  Example: "Block CloudFormation stack nếu RDS không encrypt"        │    │
│  │  Status: Pass / Fail                                                │    │
│  └─────────────────────────────────────────────────────────────────────┘    │
│                                                                             │
└─────────────────────────────────────────────────────────────────────────────┘

3.2. So sánh 3 loại Guardrails

AspectPreventiveDetectiveProactive
Cơ chếSCPs / Declarative PoliciesAWS Config RulesCloudFormation Hooks
Thời điểmTrước khi action xảy raSau khi resource tạoTrước khi resource tạo (via CFN)
ActionBlock API callAlert + ReportBlock CFN deployment
ScopeTất cả API callsResources đã tạoChỉ CloudFormation
Ví dụDeny s3:DeleteBucketDetect unencrypted EBSBlock non-compliant CFN stack

3.3. Guardrail Behavior Categories

CategoryMô tảVí dụ
MandatoryBật sẵn, KHÔNG thể tắtKhông cho phép thay đổi Log Archive
Strongly RecommendedAWS khuyến nghị bậtEncrypt EBS volumes
ElectiveTùy chọn, bật khi cầnRestrict region access

[!NOTE] Khi bạn enable guardrail trên một OU, nó tự động áp dụng cho tất cả accounts trong OU đó (giống SCP inheritance).


4. Account Factory

Account Factory tự động hóa việc tạo và cấu hình AWS accounts mới tuân thủ best practices.

4.1. Account Factory hoạt động thế nào?

┌─────────────────────────────────────────────────────────────────────────────┐
│                          Account Factory                                    │
├─────────────────────────────────────────────────────────────────────────────┤
│                                                                             │
│  Request New Account                                                        │
│  ┌──────────────────────────────────────────────────────┐                   │
│  │  Input:                                              │                   │
│  │  • Account Name                                      │                   │
│  │  • Email (unique)                                    │                   │
│  │  • Target OU                                         │                   │
│  │  • IAM Identity Center config                        │                   │
│  │  • VPC configuration (optional)                      │                   │
│  └──────────────────────┬───────────────────────────────┘                   │
│                         │                                                   │
│                         ▼                                                   │
│  Automated Provisioning                                                     │
│  ┌──────────────────────────────────────────────────────┐                   │
│  │  Control Tower automatically:                        │                   │
│  │  ✅ Creates AWS account                              │                   │
│  │  ✅ Applies guardrails from target OU                │                   │
│  │  ✅ Sets up CloudTrail logging                       │                   │
│  │  ✅ Enables AWS Config recording                     │                   │
│  │  ✅ Configures IAM Identity Center access            │                   │
│  │  ✅ Creates VPC (if configured)                      │                   │
│  │  ✅ Baseline security settings                       │                   │
│  └──────────────────────────────────────────────────────┘                   │
│                                                                             │
└─────────────────────────────────────────────────────────────────────────────┘

4.2. Account Factory Methods

MethodMô tảUse case
Console (Service Catalog)Tạo account qua AWS Service CatalogĐơn giản, ít accounts
Account Factory for Terraform (AFT)Terraform module tự động hóaIaC, batch operations, GitOps
APIsProgrammatic account creationCI/CD pipelines

4.3. Account Factory for Terraform (AFT)

┌─────────────────────────────────────────────────────────────────────────────┐
│                   Account Factory for Terraform (AFT)                       │
├─────────────────────────────────────────────────────────────────────────────┤
│                                                                             │
│  ┌─────────────┐     ┌─────────────┐     ┌─────────────┐                    │
│  │ Git Repo    │ ──► │ Terraform   │ ──► │ Control     │                    │
│  │ (Account    │     │ Pipeline    │     │ Tower       │                    │
│  │  Requests)  │     │ (CodePipe)  │     │ (Provision) │                    │
│  └─────────────┘     └─────────────┘     └─────────────┘                    │
│                                                                             │
│  ✅ GitOps-driven (GitHub, GitLab, CodeCommit)                              │
│  ✅ Batch account creation                                                  │
│  ✅ Advanced customization (VPC deletion, CloudTrail data events)           │
│  ✅ Full Terraform pipeline integration                                     │
│                                                                             │
└─────────────────────────────────────────────────────────────────────────────┘

5. Dashboards & Monitoring

5.1. Control Tower Dashboard

Control Tower cung cấp dashboard tổng quan để theo dõi:

Dashboard FeatureMô tả
Compliance statusBao nhiêu accounts/OUs đang comply hoặc violating
Enabled guardrailsDanh sách guardrails đang active
Account listTất cả accounts trong Landing Zone
Non-compliant resourcesResources vi phạm guardrails
Drift detectionPhát hiện khi cấu hình bị thay đổi ngoài ý muốn

5.2. Drift Detection

Drift xảy ra khi cấu hình Landing Zone bị thay đổi bên ngoài Control Tower:

┌──────────────────────────────────────────────────────────────────────────────┐
│                         Drift Examples                                       │
├──────────────────────────────────────────────────────────────────────────────┤
│                                                                              │
│  ⚠️  Ai đó xóa OU qua AWS Organizations Console                              │
│  ⚠️  Ai đó sửa SCP mà Control Tower quản lý                                  │
│  ⚠️  Ai đó xóa CloudTrail trail                                              │
│  ⚠️  Ai đó thay đổi cấu hình Log Archive account                             │
│                                                                              │
│  → Control Tower PHÁT HIỆN drift                                             │
│  → Alert trên Dashboard                                                      │
│  → Bạn có thể "Repair" để đưa về trạng thái đúng                             │
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────┘

[!CAUTION] Không nên thay đổi các resources do Control Tower quản lý (SCPs, OUs, CloudTrail, Config) bên ngoài Control Tower Console. Luôn dùng Control Tower để quản lý.


6. So sánh với AWS Organizations

FeatureAWS OrganizationsAWS Control Tower
Core FunctionMulti-account management frameworkAutomated landing zone + governance
SetupManual - bạn tự configure mọi thứAutomated - best practices sẵn có
SCPs / GuardrailsTự viết SCPsPre-built guardrails (400+ controls)
Account CreationManual qua Console/CLIAccount Factory tự động
Compliance MonitoringTự setup (Config, CloudTrail)Built-in dashboard
Drift DetectionKhông cóTự động phát hiện
Learning CurveThấp hơn (but more DIY)Cao hơn (but more automated)
FlexibilityCao hơn (custom setup)Thấp hơn (opinionated)
PriceFREEFREE (trả tiền cho underlying services)
Best ForCustom, experienced teamsRapid start, compliance-focused
┌─────────────────────────────────────────────────────────────────────────────┐
│                    Relationship between Services                            │
├─────────────────────────────────────────────────────────────────────────────┤
│                                                                             │
│  ┌─────────────────────────────────────────────────────────────────────┐    │
│  │              AWS CONTROL TOWER (Higher-Level)                       │    │
│  │                                                                     │    │
│  │  ┌───────────────────────────────────────────────────────────────┐  │    │
│  │  │           AWS ORGANIZATIONS (Foundation)                      │  │    │
│  │  │                                                               │  │    │
│  │  │  • Root, OUs, Accounts                                        │  │    │
│  │  │  • SCPs                                                       │  │    │
│  │  │  • Consolidated Billing                                       │  │    │
│  │  └───────────────────────────────────────────────────────────────┘  │    │
│  │                                                                     │    │
│  │  + Landing Zone       + Account Factory                             │    │
│  │  + Guardrails         + Dashboard                                   │    │
│  │  + Drift Detection    + Blueprints                                  │    │
│  └─────────────────────────────────────────────────────────────────────┘    │
│                                                                             │
│  Control Tower = Organizations + Automation + Best Practices                │
│                                                                             │
└─────────────────────────────────────────────────────────────────────────────┘

[!TIP]

  • Nếu bạn mới bắt đầu multi-account strategy → Dùng Control Tower
  • Nếu bạn cần custom setup hoặc đã có org lâu → Dùng Organizations trực tiếp
  • Control Tower KHÔNG thay thế Organizations, nó xây dựng trên Organizations

7. Pricing

FeatureCost
AWS Control TowerFREE
Underlying servicesTrả tiền bình thường

Chi phí underlying services bao gồm:

ServiceCost
AWS ConfigCharges per configuration item recorded
CloudTrailOrganization trail (free for management events)
S3Storage cho logs
SNSNotifications
AWS Service CatalogFree

[!NOTE] Bản thân Control Tower miễn phí. Bạn chỉ trả tiền cho các AWS services nó sử dụng bên dưới (chủ yếu là AWS Config recording và S3 log storage).


8. Exam Tips (SAA-C03)

  1. Control Tower được xây dựng trên nền tảng AWS Organizations - không phải service riêng biệt hoàn toàn
  2. Landing Zone = môi trường multi-account được thiết lập tự động theo best practices
  3. Guardrails chia 3 loại: Preventive (SCPs), Detective (Config Rules), Proactive (CFN Hooks)
  4. Account Factory = tự động tạo và configure accounts
  5. Khi đề bài hỏi "cách nhanh nhất để set up compliant multi-account" → Control Tower
  6. Khi đề bài hỏi "manage multi-account, consolidated billing, SCPs" → Organizations
  7. Control Tower cung cấp dashboard để theo dõi compliance - Organizations thì không
  8. Drift detection là tính năng chỉ có ở Control Tower

9. Tài liệu tham khảo