CloudFormation – 7 – Drift Detection

Drift Detection

Drift is the detection of the fact that a cloud formation template, what has been created, has actually drifted from its configuration because maybe there was some manual intervention.

Consider such a yaml template:

Let’s create a stack:

Next->

Next -> Create stack

CloudFormation has created two security groups:

So if I go to security groups I have this :

Now let’s initiate drift detection

Stack actions -> View drift results

Now, let’s modify one of the our security groups:

When we refresh drifts page we see that the drift has been detected:

We can click to the View drift details to see the details