Managing secrets in infrastructure as code (IaC) tools like Terraform is crucial to ensure high environmental security. Secrets such as system passwords, encryption keys, APIs, and service certificates protect sensitive information about an organization's infrastructure and operations. In this article, we explore multiple ways of managing the secrets with Terraform code, including using a secure Remote Backend, environment variables for secrets, file encryption, secret stores, and masking sensitive values.