By default, when a resource creation fails during the creation of a new stack, AWS CloudFormation triggers an automatic rollback.
This behavior is designed to ensure that you don't leave "dangling" resources or a half-finished environment, which could lead to security vulnerabilities or unexpected costs.