Cloud Servers

AWS CloudFormation Adds 88 Deployment Guardrails That Stop You Deleting Live Resources — What to Turn On First

14 min read

AWS CloudFormation Adds 88 Deployment Guardrails That Stop You Deleting Live Resources — What to Turn On First

The Short Answer

AWS CloudFormation and AWS CDK now support 88 new AWS-managed proactive controls for data protection and business continuity — checks that run before any resource changes and flag stack operations that would delete or replace a resource your applications still use. AWS announced them today, November 30, 2026, and we verified every detail below on AWS’s What’s New post and the CloudFormation Hooks documentation today. The controls that check whether a resource is still in use are enabled by default in Warn mode in every account, they cost nothing extra, and they cover CDK and SAM deployments as well as plain CloudFormation change sets.

The sentence to slow down on is “enabled by default in Warn mode.” Warn mode reports a finding and lets the deployment continue. It is a smoke alarm, not a sprinkler. The protection only becomes real when you promote the controls that cover your production data resources to Fail mode, where the operation stops before anything changes. This article explains what the 88 controls check, where their 24-hour activity window can mislead you, how the permission failure modes differ between Warn and Fail, and the short rollout sequence worth running on your own stacks this week — especially if AI agents now write or apply your templates.

What AWS Announced on November 30

AWS announced 88 new AWS-managed proactive controls for data protection and business continuity in CloudFormation and CDK. AWS says they are built from the checks it runs on its own infrastructure at large scale, and they exist to help developers — and, notably, AI agents that deploy with CloudFormation and CDK — avoid common deployment mistakes such as deleting data or disrupting a running application.

These are not the proactive controls AWS already offered. The existing group checks security and compliance requirements and comes from the Control Catalog. The new group checks something different: whether a stack operation deletes or replaces a resource that stores data your applications use, or that your applications depend on. Every control in the new group has a type name starting with AWS::Controls::, which is how you address it from the CLI.

The timing is the story. Infrastructure-as-code mistakes used to be a human reviewing a diff too quickly. In 2026 they are increasingly an agent generating a template, refactoring a construct, or running a cleanup task — and removing a resource that looked unused in the code but is very much used in production. AWS is explicit about this audience: its documentation has a dedicated page on using these controls with AI agents, and the What’s New post names agents alongside developers. That framing matters for how you should configure them, as the agent section below explains.

How the Checks Work

The controls evaluate stack operations that run through CloudFormation before any resource changes. That includes AWS CDK and AWS Serverless Application Model (SAM) deployments, change sets, and create, update and delete operations. When you enable a control, it evaluates the stack operations that run after you enable it — it does not retroactively judge past deployments.

The core idea is an in-use check. Controls that check whether a resource is still in use read the resource’s recent activity over a fixed window: the last 24 hours for most resource types, and the last 7 days for IAM roles and Amazon S3 bucket policies. AWS’s own example is the clearest one: if you remove an Amazon DynamoDB table that still receives traffic from your template, the change set that previews your deployment reports a finding that names the table and the issue. You see findings in three places — the CloudFormation console, the DescribeEvents API, and cdk deploy output — so the warning surfaces where you already work, not in a separate audit report nobody opens.

One interaction deserves emphasis because it rewards a habit you should already have. If a resource has DeletionPolicy or UpdateReplacePolicy set to Retain, CloudFormation keeps the resource, and the control reports no finding. In other words, the controls compose with retain policies instead of fighting them: a resource you have already protected from deletion does not generate noise. If your stateful resources — databases, buckets, tables, queues — do not carry retain policies today, this launch is a good reason to add them, because the control layer and the policy layer now reinforce each other.

Warn, Fail, and the Permission Trap

Each control runs in one of three modes, and the difference between the first two is the whole product:

Mode Finding raised Check cannot finish Caller lacks permission to read activity
WARN Reports the finding, deployment continues Deployment continues Deployment continues
FAIL Stops the operation before any resource changes Stops the operation Stops the operation and names the missing permission
Disabled Control is inactive — —

Data protection controls that check whether a resource is still in use are enabled by default in Warn mode in every account. You enable the other controls yourself. That default is sensible — nobody’s deploy breaks on day one — but it means the out-of-the-box behavior will not save you from anything. A finding scrolls past in cdk deploy output, the table is deleted, and the control has done exactly what Warn mode promises.

The permission row is where teams get surprised. The in-use checks read activity with the caller’s credentials: cloudwatch:GetMetricData for CloudWatch metrics and iam:GetRole for IAM role last-used data. AWS says you are not charged for the CloudWatch calls the controls make. But if the deploying role cannot read a resource’s activity, a Fail control stops the operation and names the missing permission, while a Warn control lets it continue. Fail is fail-closed: no visibility, no deploy. Warn is fail-open: no visibility, deploy anyway, possibly without a meaningful finding at all. Neither is wrong in the abstract, but you should choose per stack rather than inherit the default per account. The practical fix is small — add those two read permissions to your deployment roles — and the documentation includes an example policy statement with exactly those actions.

The 24-Hour Blind Spot

The fixed activity window is the honest limitation of this design, and it is worth stating plainly. Twenty-four hours of inactivity does not mean a resource is unused. A weekly batch job, a monthly reporting pipeline, a standby database that only takes traffic during failover, a queue that fills only during a quarterly campaign — all of these can look idle inside a 24-hour window and still be load-bearing. Only IAM roles and S3 bucket policies get the longer 7-day window, and even seven days does not cover a monthly cycle.

This does not make the controls useless; it defines what they are. They catch the common, expensive accident — deleting something that served traffic yesterday — which is exactly the mistake a rushed template edit or an agent cleanup makes. They do not prove a resource is safe to delete. Treat a clean result as “no recent activity detected,” not as “this resource is dead,” and keep your own judgment for anything with a cycle longer than a day. For those resources, the retain policy is the stronger tool, because it does not depend on activity at all.

There is a second scope limit worth naming. The controls check stack operations that run through CloudFormation. Resources created outside CloudFormation, changes made directly in the console, and data-level mistakes inside a resource that is not being deleted or replaced are all outside their view. They are a deployment-time guardrail for one deployment path — a very good one, but not a substitute for backups, point-in-time recovery, or deletion protection on the resources themselves.

The AI Agent Angle Is the Real News

Read the documentation’s agent page and the product strategy becomes obvious. AWS recommends three things for agents that deploy through CloudFormation or CDK. First, deny DisableValidation in the roles agents use, so an agent cannot switch the checks off for its own operation. Second, set Fail mode for the controls that cover the resources your applications depend on. Third, have the agent preview changes with change sets — or cdk deploy --method=prepare-change-set — and read the findings with describe-events before executing the change set.

That is a coherent safety model for agentic infrastructure work: the agent proposes, the control checks against live activity data, and execution waits for the findings to be read. It pairs naturally with the direction AWS has been pushing all month — our coverage of the AWS DevOps Agent in November 2026 describes agents taking on more operational work, and guardrails like these are what make that delegation defensible. AWS also offers an aws-cloudformation skill from the Agent Toolkit for AWS that helps an agent validate templates and change sets, read validation results and troubleshoot failed stack operations, installable with npx skills add aws/agent-toolkit-for-aws/skills --skill aws-cloudformation --yes --global for agents that support the open source agent skills format.

If you let any agent touch infrastructure — even a coding assistant that only edits templates a human later applies — the deny-DisableValidation recommendation is the single highest-value change in this launch. A guardrail the guarded party can disable is a suggestion. Our earlier piece on AWS Account Access Manager covers the IAM side of centralizing who can do what; this launch covers what happens when the deploy itself is the dangerous act, including the AWS::Controls::IAMRoleInUseRemoved control the documentation uses as its CLI example — a check that an IAM role still in use is not being removed by the stack operation.

Rollout Checklist for Server Owners

You do not need a project plan for this; you need an hour and a sequence. First, look. Open the Hooks page in the CloudFormation console in each Region you deploy to, or list the controls with aws cloudformation list-types --type HOOK --visibility PUBLIC --filters Category=AWS_MANAGED,TypeNamePrefix=AWS::Controls. Confirm which in-use controls are already on in Warn mode in your accounts.

Second, fix permissions before you tighten anything. Add cloudwatch:GetMetricData and iam:GetRole to the roles your pipelines and agents deploy with. Without them, Fail mode will block deploys for a reason that looks like a control bug and is actually a missing read permission — the error names the permission, but only after the deploy has already stopped.

Third, run Warn deliberately for a week or two on production stacks and read the findings. Change sets are the natural place: the finding appears in the preview, before execution. Promote the controls covering stateful production resources to Fail once the findings make sense and the false positives are understood. The CLI form is aws cloudformation set-type-configuration with the control’s AWS::Controls:: type name; the console does the same on the Hooks page. Use StackSets to apply identical settings across accounts, Regions or your whole organization, and stack filters when a control should evaluate only specific stacks.

Fourth, lock the agent path. Deny DisableValidation in agent roles, require change-set previews, and make reading findings part of the agent’s instructions. Fifth, keep the last line intact. Controls prevent; backups recover. They do nothing for a resource deleted last week or data corrupted inside a surviving resource, which is why our coverage of AWS Backup protecting your own servers remains the other half of this story. Prevention plus recovery is the whole discipline; either one alone is half of it.

Availability is simple: the new proactive controls are available at no additional charge in all AWS Regions where CloudFormation is supported, except the AWS China Regions. There is no pricing table to model and no tier to choose. The only cost is the configuration hour above — and the cost of skipping it is measured in the next accidental deletion that a Warn finding mentioned on its way past.

FAQ

What exactly did AWS announce on November 30, 2026?
88 new AWS-managed proactive controls for data protection and business continuity in CloudFormation and CDK, built from checks AWS runs on its own infrastructure. They check whether a stack operation deletes or replaces a resource that stores data your applications use or that your applications depend on. Verified on AWS’s What’s New post and Hooks documentation on November 30, 2026.

Are the controls on by default?
The data protection controls that check whether a resource is still in use are enabled by default in Warn mode in every account. You enable the other controls yourself. Warn reports a finding and lets the deployment continue; it does not block anything.

What is the difference between Warn and Fail?
Warn reports the finding and the operation continues — including when a check cannot finish or the caller cannot read the resource’s activity. Fail stops the operation before any resource changes, and also stops it when a check cannot finish or a permission is missing, naming the missing permission.

How far back do the in-use checks look?
The last 24 hours for most resource types, and the last 7 days for IAM roles and Amazon S3 bucket policies. Resources with a cycle longer than the window — weekly jobs, monthly pipelines, standby systems — can appear unused. A clean result means no recent activity was detected, not that deletion is proven safe.

Do the controls work with CDK and SAM?
Yes. They check stack operations that run through CloudFormation, including AWS CDK and AWS SAM deployments, change sets, and create, update and delete operations. Findings appear in the CloudFormation console, the DescribeEvents API and cdk deploy output.

What do they cost, and where are they available?
No additional charge, in all AWS Regions where CloudFormation is supported, except the AWS China Regions. The CloudWatch calls the controls make are not charged. The in-use checks read activity with the caller’s credentials, using cloudwatch:GetMetricData and iam:GetRole.

How should AI agents be configured to use them?
AWS recommends denying DisableValidation in agent roles so agents cannot bypass the checks, setting Fail mode for controls covering resources your applications depend on, and having the agent preview with change sets and read findings via describe-events before executing. An aws-cloudformation skill from the Agent Toolkit for AWS helps agents validate templates and read validation results.

The Bottom Line

AWS’s November 30 launch adds 88 deployment-time guardrails to CloudFormation and CDK that check — before anything changes — whether a stack operation would delete or replace a resource still in use, judging “in use” from the last 24 hours of activity (7 days for IAM roles and S3 bucket policies). The in-use controls are already on in Warn mode in every account, free, in every Region where CloudFormation runs except China. That default will not save you; it will only tell you, in the change set preview, what you are about to break. The value arrives when you add the two read permissions to your deployment roles, promote production data controls to Fail, deny agents the ability to disable validation, and keep retain policies and backups as the layers beneath. Do that hour of work and the most common infrastructure accident of the agent era — a confident template change deleting a live resource — stops being an outage and starts being a finding you read before pressing execute.

Sources: AWS What’s New, “AWS CloudFormation and CDK expand AWS-managed proactive controls for data protection and business continuity” (announced November 30, 2026), checked November 30, 2026 — 88 new controls; built from checks AWS runs on its own infrastructure; in-use controls enabled by default in Warn mode in every account; Warn vs Fail behavior; DynamoDB table example; findings in console, DescribeEvents API and cdk deploy output; Hooks page and CLI management; StackSets; CDK and SAM coverage; no additional charge in all Regions where CloudFormation is supported except AWS China Regions. AWS CloudFormation Hooks documentation, “Data protection and business continuity controls” (docs.aws.amazon.com), checked November 30, 2026 — AWS::Controls:: type names; checks before resource changes including change sets and create/update/delete; 24-hour and 7-day activity windows; Retain policy interaction; default Warn enablement; WARN/FAIL/Disabled modes and failure behavior; cloudwatch:GetMetricData and iam:GetRole permissions with example policy; CloudWatch calls not charged; console and CLI enablement (list-types, set-type-configuration, AWS::Controls::IAMRoleInUseRemoved example); StackFilters. AWS CloudFormation Hooks documentation, “Use controls with AI agents” (docs.aws.amazon.com), checked November 30, 2026 — deny DisableValidation in agent roles; Fail mode for depended-on resources; change set and prepare-change-set previews with describe-events; aws-cloudformation skill from the Agent Toolkit for AWS with install command. Server News Hub coverage linked above: AWS DevOps Agent November 2026, AWS Account Access Manager 2026, and AWS Backup On-Premises Oracle SQL Server 2026.

Leave a Reply

Your email address will not be published. Required fields are marked *