Ultimate access to all questions.
A company is utilizing AWS CodePipeline for continuous integration and continuous deployment (CI/CD) of their application to an Amazon EC2 Auto Scaling group. All AWS resources are defined within AWS CloudFormation templates. The application artifacts are stored in an Amazon S3 bucket and are deployed to the Auto Scaling group using instance user data scripts. As the application's complexity has increased, recent modifications to the CloudFormation templates have resulted in unplanned downtime. What strategy should a solutions architect employ to enhance the CI/CD pipeline and minimize the risk of downtime due to changes in the CloudFormation templates?