Opens in a new tab
News

AWS adds 88 deployment checks for CloudFormation and CDK

In brief

An AI agent can get a change set for a live DynamoDB table even after a check flags its deletion. AWS now gives teams a choice about when that finding stops the deployment.

3 min read

Is this the right starting point?
Before you read
Familiarity with a deployment preview and permission to change a production resource.
What you will take away
Read the status and failure mode together before allowing an agent to execute a destructive CloudFormation change.
Sources
In a miniature road scene, an amber beacon glows beside a raised barrier while a second truck waits behind a lowered gate.
On this page3 sections

AWS has given deployment agents a way to spot a database they are about to delete while an application is still using it. On November 30, AWS added 88 checks to CloudFormation and its Cloud Development Kit (CDK) for changes that could destroy data or interrupt service. The checks that look for recent use are on by default. They can flag a live database and still let the deployment go ahead.

Why a failed check can leave a change ready to run

CloudFormation uses a template to describe the resources an application needs. When an engineer or an AI agent edits that template, a change set previews what AWS would add, replace or remove. AWS gives the example of an orders table in DynamoDB. The edited template drops the table, but the service has recorded reads or writes against it in the past 24 hours. That gives the reviewer a reason to find out who still needs those orders.

Two fields in the finding matter. ValidationStatus can say FAILED because the check caught the planned deletion. Beside it, ValidationFailureMode says what CloudFormation will do about it. In WARN mode, AWS can create the change set with the finding attached. Someone with permission can still execute it. In FAIL mode, the finding stops the change set before the table is touched. The difference is easy to lose if an agent reports only that its preview was created successfully.

For a failed validation, WARN allows the change set to be created for review. FAIL stops change set creation.
The same failed validation can leave a change set available for execution or stop it, depending on the configured failure mode.

A quiet table can still have a customer

Consider a hypothetical billing job that reads its table every Sunday. An agent proposes deleting the table on Wednesday. For most resource types, AWS checks the previous 24 hours of activity. The last billing run falls outside that window. A quiet Wednesday tells the team very little about the invoices due next Sunday.

Give the agent permission to prepare the change. Before authorizing deletion, have the billing owner identify the table named in that exact change set and confirm where the Sunday job will read its data. If that question is still open, leave the table in place. Even a blocking control can only act on the conditions it checks. This is the same distinction between proposing a change and authorizing it that matters for agents with production access.

AWS recommends that teams using deployment agents set the relevant controls to FAIL for resources their applications depend on, keep the agent from overriding validation, and have it read the findings before execution. One detail is worth a rehearsal with the role the agent will actually use. If that role lacks permission to read resource activity, a blocking check stops the operation and identifies the missing permission. A warning lets it continue. For the billing team, that makes an unreadable activity record a reason to pause the change while the table is still there.

Sources

  1. AWS announcement of 88 CloudFormation and CDK controls
  2. CloudFormation guide to reading control findings
  3. CloudFormation guide to data protection and business continuity controls
  4. AWS guidance for using controls with AI agents

Sources & context

Sources linked in this article. Read alongside the author’s analysis; a citation does not independently verify a publisher’s claims.

Report an error or outdated detail

More on Amazon Web Services

All Amazon Web Services coverage

Keep reading

Where to go next