Detect Drift

Detect drift of stacks within the given command path.

Usage

1tkm stacks detect-drift [command-path]

Positional arguments

  • command-path
    • Command path to select from which stacks to detect drift.
    • Optional, by default, Takomo detects drift from all stacks.

Options

In addition to the common options, this command has no command-specific options.

IAM permissions

These are the minimum IAM permissions required to run this command.

1Statement: 
2  - Sid: Stacks
3    Effect: Allow
4    Action:
5      - cloudformation:DescribeStacks
6      - cloudformation:DetectStackDrift
7      - cloudformation:DescribeStackDriftDetectionStatus
8    Resource: "*"
9
10  # IAM permissions needed only if command roles are used  
11  # Specify resource to restrict access to specific roles.  
12  - Sid: IAM
13    Effect: Allow
14    Action:
15      - sts:AssumeRole
16    Resource: "*"

Examples

Detect drift from all stacks:

1tkm stacks detect-drift

Detect drift from stacks within the given command path:

1tkm stacks detect-drift /prod