aws AWS What's New ·

AWS CloudFormation now supports contract tests v2 for resource types

infraawsgaengineer
feature

AWS CloudFormation now supports contract tests v2, accessible via the `cfn test --v2` command or during registry submission for new resource types. These tests expand upon basic CRUD handlers by incorporating deeper scenarios, including live-state verification and schema backward-compatibility checks. The enhancements aim to significantly reduce development iteration cycles by identifying issues earlier, before resource types are submitted to the registry. Developers working with CloudFormation resource types will benefit from these improved validation capabilities, which are available in all AWS Regions where CloudFormation operates.

Features (1)
  • Enhanced Contract Testing for CloudFormation Resource Types

    AWS CloudFormation introduces contract tests v2, offering deeper test scenarios for resource type implementations beyond basic CRUD handlers. These tests include live-state verification, schema backward-compatibility checks, and test input linting, available locally for Java types or during registry submission for all new resource types. This capability helps developers surface issues before registry submission, reducing iteration cycles.

Read the original announcement →

https://aws.amazon.com/about-aws/whats-new/2026/09/aws-cloudformation-contract-tests-v2-resource-types/

Related releases