3 ms·
I've used https://github.com/Mastercard/terraform-provider-restapi https://github.com/Mastercard/terraform-provider-restapi successfully with a cloud provider w
by crabmusket 5y ago
I've used https://github.com/Mastercard/terraform-provider-restapi https://github.com/Mastercard/terraform-provider-restapi successfully with a cloud provider which provides a suitable HTTP API. There was a bit of fiddling with JSON formatting and their API docs, but it wasn't too hard all in all.
But like you say - now I've done that, I want to do it for every UI that I'm forced to log in to!
- scrollaway 5y agoWow, neat, thanks for the link. Maintained by Mastercard, eh? Anyone else on HN used this or worked on it?
- MuffinFlavored 5y agowhat’s the backing database for this, the .tfstste file? do the resources/secrets you create end up getting “backed up” (committed) to git?
- crabmusket 5y agoThat's right, which is why they usually recommend not committing tfstate but using some remote backend. We've gotten away without that because the APIs we use don't contain any secrets. (The auth token for making the requests is just an environment variable.)
- weitzj 5y agoYes. We use the Rest Api Provider extensively to provision ElasticSearch and Kibana.