Skip to content

Commit 262d104

Browse files
committed
Add second improvmx account to terraform
1 parent c707749 commit 262d104

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

terraform/email_forwarding.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ import {
5757
# - Sandbox Account: bbqs-ember-admin@jhuapl.edu -- @sandbox.emberarchive.org
5858

5959
resource "improvmx_domain" "sandbox" {
60-
domain = "sandbox.emberarchive.org"
60+
provider = improvmx.sandbox
61+
domain = "sandbox.emberarchive.org"
6162
}
6263

6364
resource "improvmx_email_forward" "sandbox_info" {

terraform/main.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ provider "improvmx" {
4444
# Must set IMPROVMX_API_TOKEN envvar
4545
}
4646

47+
provider "improvmx" {
48+
alias = "sandbox"
49+
api_key = var.IMPROVMX_SANDBOX_API_TOKEN
50+
# Must set IMPROVMX_SANDBOX_API_TOKEN envvar
51+
}
52+
4753
data "aws_canonical_user_id" "project_account" {}
4854

4955
data "aws_caller_identity" "project_account" {}

terraform/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,8 @@ variable "dev_email" {
1212
type = string
1313
description = "The core developer email list."
1414
}
15+
16+
variable "IMPROVMX_SANDBOX_API_TOKEN" {
17+
type = string
18+
description = "ImprovMX Sandbox account API token."
19+
}

0 commit comments

Comments
 (0)