· via dev.to (home feed)
AWS adds 88 free proactive controls to CloudFormation and CDK to block in-use deletions
AWS has added 88 managed proactive controls to CloudFormation and CDK that warn on or block stack operations deleting resources still in use. The in-use checks are already live in WARN mode in every account.

What launched
On 30 November 2026, AWS announced 88 new AWS-managed proactive controls for CloudFormation and CDK, focused on data protection and business continuity, according to a dev.to writeup of the launch. The controls are meant to catch deployment mistakes before they land: deleting a data store an application still reads from, or removing a resource something still depends on. AWS reportedly built them from checks it runs on its own infrastructure.
The controls' type names start with AWS::Controls::. They are available in every CloudFormation Region except the China Regions, and there is no additional charge — the dev.to article reports that even the CloudWatch calls the controls make are not billed, though the author notes this rests on the launch post and user guide rather than the pricing page itself.
Two details stand out. First, the controls that check whether resources are in use are already enabled in WARN mode in every account, so findings may already be appearing on change sets you run today. Second, only two control names appear in the documentation the author read — AWS::Controls::IAMRoleInUseRemoved and AWS::Controls::DynamoDBTableInUseRemoved — with the full list of 88 available through a CLI query against your own account.
How the controls work
Per the article, this launch is one of two groups of AWS-managed proactive controls. The new set covers data protection and business continuity and is configured per control in CloudFormation. A separate, pre-existing group covers security and compliance through the Control Catalog and Control Tower; those are off by default.
The new controls run before any resource changes, and they apply to creates, updates, deletes, change sets, and CDK and SAM deployments — the latter because those tools deploy through CloudFormation. A control only evaluates operations that run after it is enabled, and because it sits in CloudFormation, direct API deletes or console clicks bypass it entirely.
Whether a resource counts as still in use is judged by recent activity: the last 24 hours for most resource types, and the last 7 days for IAM roles and S3 bucket policies. If a resource has DeletionPolicy or UpdateReplacePolicy set to Retain, CloudFormation keeps it and the control reports nothing.
Each control can be set to WARN, FAIL, or disabled. WARN findings still allow the change set to be created so you can review it; FAIL findings fail the change set outright. If a check cannot complete, for example because of missing permissions, a FAIL control stops the operation while a WARN one lets it through.
Enabling and scoping them
The article gives the CLI route: list the controls with aws cloudformation list-types filtered to the AWS::Controls prefix, then enable one with set-type-configuration, setting the invocation status and failure mode. StackFilters can limit a control to named stacks, and the console's Hooks page offers the same settings. Findings surface in the Validation results tab, in DescribeEvents, and in cdk deploy output.
For an organization-wide rollout, the article suggests deploying an AWS::CloudFormation::HookTypeConfig resource per control with service-managed StackSets — for instance, FAIL for a production OU and WARN for a dev OU. The author's overall advice is to start in WARN, read the findings from your next change sets, and only then promote critical controls to FAIL in production.
Permissions and the escape hatch
The controls read activity metrics using the caller's credentials. That requires cloudwatch:GetMetricData, plus iam:GetRole for the IAM role control; without them, a FAIL control will halt the deployment and name the missing permission. Pipeline and agent roles should be checked before switching anything to FAIL.
There is also an override: DisableValidation, a parameter on CreateStack, UpdateStack, and CreateChangeSet. By default, anyone who can call those APIs can pass it, skipping these controls for that operation. The AWS documentation, as cited in the article, recommends restricting it with the cloudformation:DisableValidation condition key and keeping that decision with a human rather than an automated pipeline retry.
Why it matters
Infrastructure as code has always had a gap: a template can be perfectly valid and still destroy production data. Change sets show what will change, but not whether the thing being deleted is actually still needed. These controls add a usage signal to the deployment gate, at no cost and without writing any hook code, and they extend to CDK and SAM deployments for free. Since the in-use checks are already running in WARN mode, the cheapest first step is simply running your next change set and reading the findings.
The limits matter too. A quiet 24-hour window does not prove a resource is unused, so this is a safety net rather than a guarantee. And because DisableValidation is callable by default, teams running agents or automated pipelines should lock it down before treating the controls as an enforcement mechanism rather than an advisory layer.
- #aws
- #cloudformation
- #infrastructure-as-code
- #cdk
- #cloud