sendgrid

The sendgrid credential can be used to access SendGrid resources.

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

Arguments

NameTypeRequired?Description
api_keyStringOptionalSendGrid API Key

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

Attributes (Read-Only)

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

Default Credential

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

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