1 Answer
- Newest
- Most votes
- Most comments
1
If you modifying CloudFormation-managed resources outside of the stack for example using Tag Editor can cause drift, which may lead to unexpected behavior like rollbacks or resource deletions. CloudFormation uses the credentials of the initiating user (e.g., root) for such actions, which is why CloudTrail logs show the root user performing deletions.
To avoid such issues:
- Avoid using the root account for routine tasks.
- Manage all stack resources exclusively through CloudFormation.
- Use drift detection to identify changes.
- Apply stack policies to protect critical resources.
- Regularly monitor CloudTrail logs.
- Test changes in non-prod environments.
You can read more here
-
AWS CloudFormation Drift Detection
AWS CloudFormation Drift Detection Documentation -
AWS CloudFormation Best Practices
AWS CloudFormation Best Practices -
AWS Tagging Best Practices
AWS Tagging Best Practices -
AWS CloudTrail Documentation
AWS CloudTrail Documentation -
AWS Root User Best Practices
AWS Root User Best Practices
Relevant content
- asked 2 years ago
- asked 5 years ago
- AWS OFFICIALUpdated 2 months ago
