forwardemail / forwardemail.net

Privacy-focused encrypted email for everyone. All-in-one alternative to Gmail + Mailchimp + Sendgrid.
https://forwardemail.net
Other
842 stars 110 forks source link

Feature request: Terraform provider #162

Open politician opened 2 years ago

politician commented 2 years ago

Intro

Terraform is great for managing remote resources and ensuring everything is in a given state. It has more than 2000 providers and is the leading cloud infrastructure management software. The closest contender is Pulumi and it supports Terraform providers.

Benefits for forwardemail.net customers

Benefits for forwardemail.net

Example usage

Aliases and domains can be specified in a file in a GitHub repository. Every time there is a change (commit), Terraform will ensure the configuration described in the GitHub repository is the same in forwardemail.net: adding any domains/aliases that have been added and deleting those that have been deleted from the file. This workflow has the benefit of making this repo the source of truth.

Existing email forwarding solutions for Terraform users

Helpful resources

politician commented 2 years ago

I managed to achieve what I wanted to do using the Rest API provider, it's not perfect but it does the job until there's a full fledged Terraform provider available for forwardemail.net.

The code can be found in my public repo:

abagayev commented 10 months ago

Hey folks, I made one, please take a look :-) https://registry.terraform.io/providers/abagayev/forwardemail/latest

Here is also a story behind it: https://medium.com/@abagayev/lessons-learned-from-writing-a-terraform-provider-62412b79a997