Example of daily automated CloudFormation stack creation and deletion.
The Terraform template sets up Lambda functions that are triggers each weekday by CloudWatch Rules. These functions create a CloudFormation stack at a particular time and then delete it at a later time.
There is also an equivalent CloudFormation template. Please note that the CloudFormation version of the template has the IAM policy and Lambda code embedded in the template, rather than referencing external files. External files are possible but they would need to be placed in S3.
The PNG file(s), such as diagram.png, were created using www.draw.io and can be edited using that site.