Skip to content

Commit 54fe05b

Browse files
committed
docs: Add an example Terraform file and an index page for the Registry
1 parent f8a8426 commit 54fe05b

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ terraform {
22
required_providers {
33
improvmx = {
44
source = "issyl0/improvmx"
5+
version = "0.1.0"
56
}
67
}
78
}
@@ -10,8 +11,13 @@ provider "improvmx" {
1011
// Set the `IMPROVMX_API_TOKEN` environment variable.
1112
}
1213

14+
// ImprovMX creates a wildcard email forward on each domain by default.
15+
resource "improvmx_domain" "example" {
16+
domain = "example.com"
17+
}
18+
1319
resource "improvmx_email_forward" "hello" {
1420
domain = "example.com"
1521
alias_name = "hello"
16-
destination_email = "[email protected]"
22+
destination_email = "[email protected],[email protected]"
1723
}

docs/index.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# terraform-provider-improvmx
2+
3+
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).
4+
5+
## Features
6+
7+
- Create a domain (ImprovMX creates a wildcard forward for a domain by default).
8+
- Update a domain (to add/remove whitelabel (Enterprise plans only) and notification email settings).
9+
- Delete a domain.
10+
- Import a domain.
11+
- Create an email forward.
12+
- Delete an email forward.
13+
- Import an email forward.
14+
- Update an email forward (ImprovMX allows updating an email forward to send to more than one address, ie `[email protected],[email protected]`).

0 commit comments

Comments
 (0)