Background
Currently, most apps utilizing terraform to manage cloud.gov infrastructure use the s3 backend for state storage, but have no mechanism to lock terraform runs, increasing the risk of bad interactions via concurrent terraform runs by multiple CI branches and/or developers
Potential options:
PG backend
https://developer.hashicorp.com/terraform/language/settings/backends/pg
Does both state storage and locking withing postgres
Expose DynamoDB as an SSB service
Continue to utilize s3 for state and make it easy to pair with DynamoDB for locking
OpenTofu DynamoDB-free locking in S3
opentofu/opentofu#599 - currently just a proposal, but would likely be the cheapest and easiest to operate if it exists by the time this is worked on.