File: detect-stack-drift.rst

package info (click to toggle)
awscli 2.23.6-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 147,792 kB
  • sloc: python: 189,234; xml: 14,924; makefile: 189; sh: 178; javascript: 4
file content (14 lines) | stat: -rwxr-xr-x 425 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
**To detect drifted resources**

The following ``detect-stack-drift`` example initiates drift detection for the specified stack. ::

    aws cloudformation detect-stack-drift \
        --stack-name my-stack

Output::

    {
        "StackDriftDetectionId": "1a229160-e4d9-xmpl-ab67-0a4f93df83d4"
    }

You can then use this ID with the ``describe-stack-resource-drifts`` command to describe drifted resources.