![Forrest logo](/images/logo.png)
aws-cloudformation:tldr:d1300
The command "aws cloudformation detect-stack-drift" is used to check if there are any differences between the current state of a CloudFormation stack and the expected template.
Here is a breakdown of the command and its parameters:
-
"aws cloudformation detect-stack-drift": This is the base command to detect stack drift.
-
"--stack-name ${stack-id}": This parameter is used to specify the name or unique identifier of the stack that you want to check for drift. "${stack-id}" should be replaced with the actual name or ID of the stack.
-
"--profile ${profile}": This parameter is used to specify the AWS profile to be used for the command. "${profile}" should be replaced with the name of the AWS profile that you want to use.
In summary, this command is used to detect any drift or differences between the expected state defined in the CloudFormation template and the current state of the stack.