Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPIKE: investigate supporting easy terraform locking via cloud.gov-managed services #38

Open
rahearn opened this issue May 8, 2024 · 1 comment

Comments

@rahearn
Copy link
Contributor

rahearn commented May 8, 2024

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.

@mogul
Copy link
Contributor

mogul commented May 9, 2024

Side note: There's a proposal to add a DynamoDB-free locking mechanism to the S3 backend in OpenTofu... If that happens before we work on this, then it may be not worth doing too much to encourage greater use of pg; an RDS instance is more expensive for cloud.gov to operate than an S3 bucket is. ;)

@rahearn rahearn changed the title SPIKE: investigate supporting easy use of pg backend SPIKE: investigate supporting easy terraform locking via cloud.gov-managed services May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants