Deactivating AWS CloudFormation Hooks - AWS CloudFormation Hooks

Deactivating AWS CloudFormation Hooks

Deactivating a Hook prevents the Hook from running your AWS account.

TargetStacks set to NONE turns the Hook off in your account, so it doesn't apply to stack operations. Use the set-type-configuration operation and specify TargetStacks as NONE to deactivate a Hook.

The following example specifies the AWS Region and the Amazon Resource Name (ARN) of the Hook that's being deactivated.

$ aws cloudformation set-type-configuration \ --region us-west-2 \ --configuration '{"CloudFormationConfiguration": {"HookConfiguration": {"TargetStacks": "NONE", "FailureMode": "FAIL", "Properties":{}}}}' \ --type-arn HOOK_TYPE_ARN