- Robert Boscacci/
- Projects/
- Certification: AWS DevOps Pro/
- 2: Configuration Mgmt / Infrastructure as Code/
- 2: CloudFormation/
- 7: CF Drift Detection & Remediation/
7: CF Drift Detection & Remediation
·1 min
Table of Contents
(Not v important for the exam)
What’s drift?
- Modifying stuff in the stack, but not from the template
- Now CF template doesn’t reflect topology of the stack
- This is bad for disaster recovery (DR)
- E.g. adding an EIP to ec2 instance, but not in template
- Deletion will fail
How to detect + avoid drift?
- AWS Config:
- Run config rule:
cloudformation-stack-drift-detection-check
- Slap some SNS on it
- Run config rule:
- Limit who can change stack resources