Detect drift
Detect drift of stacks within the given command path.

Usage

1
tkm stacks detect-drift [command-path]
Copied!

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.
1
Statement:
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: "*"
Copied!

Examples

Detect drift from all stacks:
1
tkm stacks detect-drift
Copied!
Detect drift from stacks within the given command path:
1
tkm stacks detect-drift /prod
Copied!
Last modified 6mo ago