Giám sát và vận hành: CloudWatch, CloudTrail, Config, Systems ManagerMonitoring and operations: CloudWatch, CloudTrail, Config, Systems Manager
Hệ thống MFTECH đã vận hành trong môi trường production và cần khả năng quan sát trạng thái hệ thống cũng như truy vết thao tác. Bài học trình bày năm nội dung: cấu hình alarm với độ trễ phát hiện đủ thấp, dùng alarm action để tự động khôi phục instance, bảo toàn log khi instance bị thay thế, truy vết thay đổi và đánh giá mức tuân thủ cấu hình, và vá hàng trăm instance mà không gây lỗi cho người dùng; phần cuối phân biệt các tính năng dễ nhầm lẫn.The MFTECH system now runs in production and needs to observe the state of the system and trace actions. This lesson covers five topics: configuring alarms with a low enough detection delay, using alarm actions to recover instances automatically, preserving logs when instances are replaced, tracing changes and evaluating configuration compliance, and patching hundreds of instances without causing errors for users; the last part tells apart features that are easy to confuse.
- Mức độ
- Bổ trợ Áp dụng cho các yêu cầu chuyên biệt
- Kiến thức tiên quyết
- EC2Auto Scaling (ASG)IAM + Organizations
- Thời lượng
- ~35 phút, 6 phần học có mô phỏng
Hệ thống MFTECH đã có load balancer, Auto Scaling group, container và Lambda. Hệ thống đã vận hành ổn định, nhưng đội vận hành thường xuyên cần trả lời các câu hỏi: mức sử dụng CPU hiện tại là bao nhiêu, ai vừa xoá security group, log của instance ngày hôm trước được lưu ở đâu, khi nào thực hiện vá hệ điều hành. Bốn dịch vụ tương ứng với bốn nhóm câu hỏi này: CloudWatch (metric, log, alarm), CloudTrail (ai đã gọi API nào), AWS Config (cấu hình và mức tuân thủ), Systems Manager (thao tác trực tiếp trên các instance).
The MFTECH system already has load balancers, Auto Scaling groups, containers and Lambda. It runs stably, but the operations team regularly needs to answer questions: what is the current CPU utilization, who just deleted a security group, where are yesterday’s instance logs stored, when should operating system patches be applied. Four services correspond to these four groups of questions: CloudWatch (metrics, logs, alarms), CloudTrail (who called which API), AWS Config (configuration and compliance), Systems Manager (acting directly on instances).
Các phần của bài học
Kiến thức
6 phần học, đọc theo thứ tự- Phần 1/6Part 1/6 · 4 phút Đã đọc ✓ Đang đọc Basic monitoring và detailed monitoring cho EC2 instanceBasic monitoring and detailed monitoring for EC2 instances
- Phần 2/6Part 2/6 · 5 phút Đã đọc ✓ Đang đọc Status check và CloudWatch alarm actionStatus checks and CloudWatch alarm actions reboot, recover
- Phần 3/6Part 3/6 · 8 phút Đã đọc ✓ Đang đọc Tập trung log bằng CloudWatch Logs và metric filterCentralizing logs with CloudWatch Logs and metric filters
- Phần 4/6Part 4/6 · 10 phút Đã đọc ✓ Đang đọc Ghi nhận API activity bằng CloudTrail, đánh giá compliance bằng AWS ConfigRecording API activity with CloudTrail, evaluating compliance with AWS Config
- Phần 5/6Part 5/6 · 5 phút Đã đọc ✓ Đang đọc Vá EC2 instance bằng Patch Manager và Maintenance WindowsPatching EC2 instances with Patch Manager and Maintenance Windows
- Phần 6/6Part 6/6 · 2 phút Đã đọc ✓ Đang đọc So sánh các tính năng giám sát và vận hành dễ nhầm lẫnComparing easily confused monitoring and operations features
Bài kiểm tra
tự đánh giá trước khi sang bài sauCác bài tiếp theo trong lộ trình học
Bài học tiếp theo
Tài liệu AWS
Xem thêm 39 tài liệu
- What is Amazon CloudWatch Logs?
- What is AWS CloudTrail?
- What is AWS Config?
- What is AWS Systems Manager?
- Automatic instance recovery (Amazon EC2)
- Configure CloudWatch action based recovery
- Create alarms that stop, terminate, reboot, or recover an instance
- Configure termination policies for Amazon EC2 Auto Scaling
- Use Lambda recursive loop detection to prevent infinite loops
- Amazon ECS CloudWatch metrics
- Logging management events (CloudTrail)
- Service control policies (SCPs)
- acm-certificate-expiration-check (AWS Config)
- restricted-ssh (AWS Config)
- Remediating noncompliant resources with AWS Config rules
- Managing EC2 instances automatically with Default Host Management Configuration
- AWSEC2-PatchLoadBalancerInstance
- What is AWS Outposts?
- What is Snowball Edge?
- Working with CloudTrail Insights
- How CloudTrail works
- Sending CloudTrail events to CloudWatch Logs
- Creating a trail for an organization
- CloudWatch alarms for AWS Trusted Advisor metrics
- Trusted Advisor service limits checks
- ACM supported CloudWatch metrics
- Amazon EventBridge support for ACM
- Managed certificate renewal in ACM
- Conformance packs for AWS Config
- Managing conformance packs across an organization
- What is AWS Control Tower?
- Systems Manager hybrid activations
- Managing nodes in hybrid and multicloud environments
- Configure instance permissions required for Systems Manager
- Use instance profiles (IAM)
- AWS Systems Manager Parameter Store
- IAM database authentication for MariaDB, MySQL, and PostgreSQL
- AWS Systems Manager Session Manager
- Connect to a Linux instance using EC2 Instance Connect
Xem thêm 39 tài liệu
- What is Amazon CloudWatch Logs?
- What is AWS CloudTrail?
- What is AWS Config?
- What is AWS Systems Manager?
- Automatic instance recovery (Amazon EC2)
- Configure CloudWatch action based recovery
- Create alarms that stop, terminate, reboot, or recover an instance
- Configure termination policies for Amazon EC2 Auto Scaling
- Use Lambda recursive loop detection to prevent infinite loops
- Amazon ECS CloudWatch metrics
- Logging management events (CloudTrail)
- Service control policies (SCPs)
- acm-certificate-expiration-check (AWS Config)
- restricted-ssh (AWS Config)
- Remediating noncompliant resources with AWS Config rules
- Managing EC2 instances automatically with Default Host Management Configuration
- AWSEC2-PatchLoadBalancerInstance
- What is AWS Outposts?
- What is Snowball Edge?
- Working with CloudTrail Insights
- How CloudTrail works
- Sending CloudTrail events to CloudWatch Logs
- Creating a trail for an organization
- CloudWatch alarms for AWS Trusted Advisor metrics
- Trusted Advisor service limits checks
- ACM supported CloudWatch metrics
- Amazon EventBridge support for ACM
- Managed certificate renewal in ACM
- Conformance packs for AWS Config
- Managing conformance packs across an organization
- What is AWS Control Tower?
- Systems Manager hybrid activations
- Managing nodes in hybrid and multicloud environments
- Configure instance permissions required for Systems Manager
- Use instance profiles (IAM)
- AWS Systems Manager Parameter Store
- IAM database authentication for MariaDB, MySQL, and PostgreSQL
- AWS Systems Manager Session Manager
- Connect to a Linux instance using EC2 Instance Connect