Previous: CloudFront CDN with Terraform Every modern web app has secrets that need to be shared securely with it. You web application may need to have a environment variable like an API key. That key should be stored in AWS secrets manager , it is a great use case for us to learn about how to give access to instance to the secret. Overview We are going to create infra same as before but with the secrets manager integrated Github Repository This guide full code is available in https://github.com/IaC-Toolbox/iac-toolbox-project/tree/main/v7-secrets . Feel free to clone it and follow along! Creating a Secret in AWS Secret Manager Now lets add the actual secrets. We need to add secrets only once, and then reference them. This is the process that we will repeat everytime the secret has to be updated.…