When provisioning infrastructure with Terraform, there are some resources that require passwords in their properties, such as VMs and databases.
To ensure better security by not writing passwords in clear text, you can use a Terraform provider, which allows you to generate passwords.
In this recipe, we will discuss how to generate a password with Terraform and assign it to a resource.