Set the DeletionPolicy to Retain in the CloudFormation template.
A 3-tier application architecture exists as a modular client-server architecture that consists of a presentation tier, an application tier, and a data tier. The three-tier architecture stands as the most popular implementation of a multi-tier architecture and consists of a single presentation tier, logic tier, and data tier.
If a resource exists deleted, the DeletionPolicy retains the physical resource but confirms that it's deleted from CloudFormation's scope. If a resource exists updated such that a new physical resource is created to replace the old resource, then the old resource stands completely deleted, including from CloudFormation's scope.
Hence, Set the DeletionPolicy to Retain in the CloudFormation template.
To learn more about Three-tier web application refer to:
https://brainly.com/question/12627837
#SPJ4