A generated secret version resource.
This will generate a secret and store the value directly in the Google Secret manager secret, to avoid the secret appearing in clear text in the terraform source or the terraform state file.
given secrets should be stored using the google_kms_secret
and the google_secret_manager_secret_version
.
When the secret version is updated outside the scope of the terraform template, the resource will return the latest version.