Created
February 27, 2019 19:32
-
-
Save chrisconlon-klaviyo/084c952834c397dfe056d6cc38b69b00 to your computer and use it in GitHub Desktop.
Sample mail_dumpster terraform
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terraform { | |
backend "s3" { | |
bucket = "synthetic-loadtest-stacks" | |
key = "synthetic-loadtest/mail_dumpster" | |
region = "us-east-1" | |
workspace_key_prefix = "terraform-state" | |
} | |
} | |
data "terraform_remote_state" "vpc" { | |
backend = "s3" | |
config { | |
bucket = "synthetic-loadtest-stacks" | |
key = "terraform-state/${var.stack_name}/synthetic-loadtest/main-vpc" | |
} | |
} | |
data "terraform_remote_state" "zookeeper" { | |
backend = "s3" | |
config { | |
bucket = "synthetic-loadtest-stacks" | |
key = "terraform-state/${var.stack_name}/synthetic-loadtest/main-vpc" | |
} | |
} | |
module "mail_dumpster" { | |
source = "modules/mail_dumpster" | |
name_tag = "${var.stack_name}" | |
ami_id = "${var.ami_id}" | |
instance_type = "${var.instance_type}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment