Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/issyl0/terraform-provider-improvmx

A Terraform provider for configuring ImprovMX email forwards
https://github.com/issyl0/terraform-provider-improvmx

emails improvmx terraform terraform-provider

Last synced: 10 days ago
JSON representation

A Terraform provider for configuring ImprovMX email forwards

Awesome Lists containing this project

README

        

# terraform-provider-improvmx

A very nascent Terraform provider for configuring [ImprovMX](https://improvmx.com) email forwards. Uses my [ImprovMX Golang API client](https://github.com/issyl0/go-improvmx). Download from the [Terraform Registry](https://registry.terraform.io/providers/issyl0/improvmx/latest).

## Features

- Create a domain (ImprovMX creates a wildcard forward for a domain by default).
- Update a domain (to add/remove whitelabel (Enterprise plans only) and notification email settings).
- Delete a domain.
- Import a domain.
- Create an email forward.
- Delete an email forward.
- Import an email forward.
- Update an email forward (ImprovMX allows updating an email forward to send to more than one address, ie `[email protected],[email protected]`).
- Create, update and delete a domain's SMTP credentials.

## Usage

```hcl
terraform {
required_providers {
improvmx = {
source = "issyl0/improvmx"
}
}
}

provider "improvmx" {
// Set the `IMPROVMX_API_TOKEN` environment variable.
}

resource "improvmx_domain" "example" {
domain = "example.com"
}

resource "improvmx_email_forward" "hello" {
domain = "example.com"
alias_name = "hello"
destination_email = "[email protected]"
depends_on = [improvmx_domain.example]
}

resource "improvmx_email_forward" "wildcard" {
domain = "example.com"
alias_name = "*"
destination_email = "[email protected]"
depends_on = [improvmx_domain.example]
}

```