Skip to content

Enalean/terraform-provider-mailjet

Repository files navigation

terraform-provider-mailjet

Go Reference Go Report Card Github Actions

This repository contains the source code for the Mailjet Terraform provider. This Terraform provider lets you interact with the Mailjet API.

See the documentation in the Terraform registry for the most up-to-date information and latest release.

This provider is maintained by Enalean.

Getting Started

To install this provider, copy and paste this code into your Terraform configuration. Then, run terraform init:

terraform {
  required_providers {
    mailjet = {
      source = "enalean/mailjet"
      version = "~> 0.1" // Latest 0.1.x
    }
  }
}

provider "mailjet" {
  api_key_public = "..."
  api_key_private = "..."
}

In the provider block, set your API key in the api_key_public and api_key_private fields. Alternatively, use the MJ_APIKEY_PUBLIC and MJ_APIKEY_PRIVATE environment variables.