Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TF configuration for ImprovMX #211

Merged
merged 6 commits into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
}
}