Forrest logo
back to the aws tool

aws-cloudformation:tldr:d1300

aws-cloudformation: Initiate drift detection for a stack.
$ aws cloudformation detect-stack-drift --stack-name ${stack-id} --profile ${profile}
try on your machine

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.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the aws tool