Managing API Datasource with Terraform

Does anyone know if it is possible to manage a REST API data source associated with my retool-hosted account via Terraform? I'm trying to simplify my API key rotation process so that that the new key is applied to my data source in retool when I apply a new plan.

1 Like

Hey @jbnitorum1 - welcome back to the community! :slightly_smiling_face:

If I understand correctly, you are currently managing your organization's infrastructure with Terraform and want to automatically persist certain changes within Retool when applying a new plan. Does that sound right?

It's a particularly pertinent question because we are actively working on Terraform integration in order to accelerate the configuration of new instances. You can see what we've published so far here.

Note that your plan must include access to the Retool API in order for this to function. You can see all the published API endpoints here, including a few we've added relatively recently that specifically allow organizations to manage config variables and secrets. This is another avenue for rotating keys in a slightly less manual way. :+1:

I hope that helps! Let me know if you have any follow-up questions.