We are trying to manage all of our servers/services via an infrastructure as code model, where we have a separate code repo (in terraform/terragrunt) that specifies what versions of other repos should be deployed/live for different environments.
I’m struggling to find a way to work with Netlify in this manner. There are terraform providers for setting up a site or creating new build hooks, but what we’re trying to do is along the lines of updating a SHA that’s checked in to the terraform repo and having that trigger a deploy to Netlify (typically, a terraform module would check to see what’s CURRENTLY deployed and whether it’s up to date and then if not, use the new value to trigger the deployment).
One idea I had was to stop auto-publishing and use terraform to change the git tag or SHA that is deployed on Netlify, but as far as I can tell, Netlify ONLY allows you to configure a branch and always sets the HEAD of the branch. I do understand that we can control builds and deploys without using Netlify’s build but I see no way to control this in a configuration-based manner.
I’m wondering if anyone out there is using Netlify with terraform or other methodology for this kind of workflow? (Please don’t just forward URLs to terraform providers without explaining something about them, I’ve been combing through docs and don’t see a straightforward path)!
Thanks for any ideas/help…