</>Học Dev
Bài học

Tuần 8 - Ngày 2: EventBridge và Automation

Tuần 8 – Ngày 2

Tuần 8 - Ngày 2: EventBridge và Automation

1. Amazon EventBridge

EVENTBRIDGEEventSources:AWSServices(built-in)CustomApplicationsSaaSPartners(Zendesk,Datadog)ScheduledEvents(cron)EventBusRules-EventPatternmatching-ScheduleexpressionsTargetsTargets(Lambda)(SNS,SQS)EventBuses:Default(AWSevents)Custom(yourevents)Partner(SaaSevents)

2. Event Patterns

{
  "source": ["aws.ec2"],
  "detail-type": ["EC2 Instance State-change Notification"],
  "detail": {
    "state": ["stopped", "terminated"]
  }
}

3. AWS Systems Manager

SYSTEMSMANAGERInventory:CollectmetadatafrominstancesPatchManager:AutomateOSpatchingSessionManager:SecureshellaccesswithoutSSHParameterStore:CentralizedconfigurationAutomation:RunbooksforoperationaltasksStateManager:MaintaininstanceconfigurationRunCommand:Executecommandsatscale

4. Infrastructure as Code

CloudFormation:
- Native AWS
- JSON/YAML templates
- StackSets for multi-account/region

AWS CDK:
- Code-first approach
- TypeScript, Python, Java, C#
- Generates CloudFormation

Terraform:
- Multi-cloud
- HCL language
- State management

Tài liệu tham khảo chính thức


Ngày tiếp theo: Quiz tổng kết Tuần 8