sendgrid

The sendgrid connection can be used to access SendGrid resources.

connection "sendgrid" "my_sendgrid" {
api_key = "SG.R7..."
}

Arguments

NameTypeRequired?Description
api_keyStringOptionalSendGrid API Key

All arguments are optional, and a sendgrid connection with no arguments will behave the same as the default connection.

Attributes (Read-Only)

AttributeTypeDescription
envMapA map of the resolved connection-related environment variables (SENDGRID_API_KEY)

Default Connection

The sendgrid connection type includes an implicit, default connection (connection.sendgrid.default) that will be configured to set the api_key to the SENDGRID_API_KEY environment variable.

connection "sendgrid" "default" {
api_key = env("SENDGRID_API_KEY")
}