The Forward Email Provider enables Terraform to manage Forward Email resources.
Clone repository:
git clone https://github.com/forwardemail/terraform-provider-forwardemail.git
Enter the provider directory and build the provider:
cd terraform-provider-forwardemail
make build
To use a released provider in your Terraform environment, run terraform init
and Terraform will automatically install the provider. To specify a particular provider version when installing released providers, see the Terraform documentation on provider versioning.
To instead use a custom-built provider in your Terraform environment (e.g. the provider binary from the build instructions above), follow the instructions to install it as a plugin. After placing the custom-built provider into your plugins directory, run terraform init
to initialize it.
terraform {
required_version = ">= 1.0.0"
required_providers {
spacelift = {
source = "forwardemail/forwardemail"
version = ">= 1.0"
}
}
}
provider "forwardemail" {
api_key = "XXXXXXX"
}
resource "forwardemail_domain" "default" {
name = "example_domain.com"
}
In order to test the provider, you can run go test
.
go test -v ./...
In order to run the full suite of Acceptance tests, you'll need a paid Forward Email account.
You'll also need to set the API key environment variable:
export FORWARDEMAIL_API_KEY=<API_KEY>
make testacc
For bug reports & feature requests, please use the issue tracker.
PRs are welcome! We follow the typical "fork-and-pull" Git workflow.
- Fork the repo on GitHub
- Clone the project to your own machine
- Commit changes to your own branch
- Push your work back up to your fork
- Submit a Pull Request so that we can review your changes
Tip
Be sure to merge the latest changes from "upstream" before making a pull request!