title: How to output the Cosmos DB Connection String using Terraform
body: <p>I'm using Terraform to build a Cosmos DB using the Mongo API in Azure but can't figure out how to return or output the connection string once it's built.</p>
  
  <p>I've built several Cosmos DB's but can't find any material on how to output the connection string. I'm using module to build the resource which call's my main.tf and variable.tf. If I knew what to put in the output.tf file I'd put it in there so my module could leverage it.</p>
  
  <p>Module {
  variable inputs
  }</p>
  
  <p>I don't have any error messages to post as I don't know how to call the connection string. I did parse the Azure Provider and have posted a pic of the JSON from the Mongo DB Cosmos section. Pic of the JSON below:
  ![Mongo Cosmos DB JSON from the Azure TF Provider]<a href="https://i.imgur.com/VwtkpiR.png" rel="nofollow noreferrer">https://i.imgur.com/VwtkpiR.png</a></p>