Overview
This article describes how to obtain the correct schema to create a vault connection for the SendGrid Flow integration using the auth0 Terraform provider.
Applies To
- Forms
- Forms for actions
- Vault connection
- Flows
- Sendgrid
Cause
The documentation on the Terraform provider does not have specific instructions on the expected schema to create a vault connection for the SendGrid flow integration:
Resource: auth0_flow_vault_connection
Solution
By checking the body of the request in the network tab in the browser when creating a test connection in the Dashboard UI, the correct schema can be seen:
resource "auth0_flow_vault_connection" "sendgrid" {
app_id = "SENDGRID"
name = "MySendGrid1" // (String) Name of the vault connection
setup = {
api_key = "xxxxxxxx" // (String) Your SendGrid API Key
type = "API_KEY"
}
}
Remember to use v1.7.0 or higher of the Auth0 Terraform provider.