Enforcing AWS Secret version with OpenTofu/Terraform

Introduction Managing secrets in AWS is a common task. It is therefore surprising that the default aws_secretsmanager_secret_version usage does not properly enforce a secret value. At first glance, it appears to enforce secret versions properly because updating the secret&rsquo;s value results in an updated AWS secret version accordingly. Furthermore, if the secret is deleted then…