💾 Archived View for cfdocs.wetterberg.nu › detect-drift-resource.gemini captured on 2024-08-25 at 01:58:47. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-03)

-=-=-=-=-=-=-

Detect drift on individual stack resources

Search

You can detect drift on specific resources within a stack, rather than the entire stack. This is especially useful when you only need to determine if specific resources now match their expected template configurations again.

When performing drift detection on a resource, CloudFormation also updates the overall stack drift status and the *Last drift check time*, if applicable. For example, suppose a stack has a drift status of *IN\_SYNC*. You have CloudFormation perform drift detection on one or more resources contained in that stack, and CloudFormation detects that one or more of those resources has drifted. CloudFormation updates the stack drift status to *DRIFTED*. Conversely, suppose you have a stack with a drift status of *DRIFTED* because of a single drifted resource. If you set that resource back to its expected property values, and then detect drift on the resource again, CloudFormation will update both resource drift status and stack drift status to *IN\_SYNC* without requiring you to detect drift on the entire stack again.

https://console.aws.amazon.com/cloudformation

{P Image}