Skip to content

Commit

Permalink
Merge pull request #211 from dandi/improvmx
Browse files Browse the repository at this point in the history
Add TF configuration for ImprovMX
  • Loading branch information
waxlamp authored Jan 29, 2025
2 parents fc59f8f + 7ecdd07 commit a7fd7be
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
53 changes: 53 additions & 0 deletions terraform/email_forwarding.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
resource "improvmx_domain" "dandiarchive" {
domain = "dandiarchive.org"
}

import {
to = improvmx_domain.dandiarchive
id = "dandiarchive.org"
}

# Set up email forwards.
resource "improvmx_email_forward" "help" {
domain = improvmx_domain.dandiarchive.domain
alias_name = "help"
destination_email = "[email protected]"
}

import {
to = improvmx_email_forward.help
id = "dandiarchive.org_help"
}

resource "improvmx_email_forward" "info" {
domain = improvmx_domain.dandiarchive.domain
alias_name = "info"
destination_email = "[email protected]"
}

import {
to = improvmx_email_forward.info
id = "dandiarchive.org_info"
}

resource "improvmx_email_forward" "team" {
domain = improvmx_domain.dandiarchive.domain
alias_name = "team"
destination_email = "[email protected]"
}

import {
to = improvmx_email_forward.team
id = "dandiarchive.org_team"
}

resource "improvmx_email_forward" "community" {
domain = improvmx_domain.dandiarchive.domain
alias_name = "community"
destination_email = "[email protected],[email protected],[email protected],[email protected]"
}

import {
to = improvmx_email_forward.community
id = "dandiarchive.org_community"
}
4 changes: 4 additions & 0 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ provider "sentry" {
# Must set SENTRY_AUTH_TOKEN envvar
}

provider "improvmx" {
# Must set IMPROVMX_API_TOKEN envvar
}

data "aws_canonical_user_id" "project_account" {}

data "aws_caller_identity" "project_account" {}
Expand Down
3 changes: 3 additions & 0 deletions terraform/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@ terraform {
sentry = {
source = "jianyuan/sentry"
}
improvmx = {
source = "issyl0/improvmx"
}
}
}

0 comments on commit a7fd7be

Please sign in to comment.