Home icon

AWS CloudFormation now supports contract tests v2 for resource types

News



AWS CloudFormation now supports contract tests v2, providing enhanced testing capabilities for resource type implementations through the cfn test --v2 command.

  • Live-state verification confirms actual resource state matches requested state after CRUD operations
  • Schema backward-compatibility checks ensure resource type compatibility
  • Test input linting flags hardcoded Regions, account IDs, and partitions
  • Detailed HTML and JUnit XML reports for local contract test execution
  • Java-based resource types can run tests locally with Docker and built handler package
  • All new resource types can run contract tests v2 through test-type API during registry submission

Contract tests v2 significantly reduces development iteration cycles by identifying issues before registry submission.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Jun 10
2024
AWS CloudFormation accelerates dev-test cycle with adjustable timeouts for custom resources
Oct 1
2026
AWS CloudFormation and CDK now provision infrastructure up to 2x faster by default
Nov 18
2025
AWS CloudFormation accelerates dev-test cycle with early validation and simplified troubleshooting
Sep 10
2026
AWS Transform for .NET now generates unit tests for modernized code

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.