Skill 5.2.2
Modifying infrastructure configurations in response to events
Key Concepts
EventBridge rules trigger Lambda, Step Functions or Systems Manager Automation when an event occurs: isolate an EC2 instance when GuardDuty reports it compromised (swap its security group, snapshot its volumes), add capacity when a queue grows, tag resources when they are created, or block a public S3 bucket when a policy change is detected.
Infrastructure defined in CloudFormation should be changed through the stack where possible so the template stays the source of truth; automated emergency fixes should be followed by updating the IaC, or drift detection will flag the difference.