I'm trying to figure out how to update the JSON config files in my .NET Core web service, based on the deployed resources using Terraform.
I have an existing Azure DevOps pipeline, which builds/deploys a .NET Core web service to an Azure App Service.
In moving to Terraform, I'll be creating a CosmosDb database, Azure Search service, Event Grid, etc. for dev/test/prod environments.
I have a handle on creating these in Terraform, but I'm not clear how to take the outputs from these resources (like the CosmosDb location, key, and database id) and inject these into my JSON config files in my deployed web service.
Has anyone done this sort of thing, and can show a Terraform example? Thanks!