Skip to content

Instantly share code, notes, and snippets.

@chrisconlon-klaviyo
Created February 27, 2019 19:32
Show Gist options
  • Save chrisconlon-klaviyo/084c952834c397dfe056d6cc38b69b00 to your computer and use it in GitHub Desktop.
Save chrisconlon-klaviyo/084c952834c397dfe056d6cc38b69b00 to your computer and use it in GitHub Desktop.
Sample mail_dumpster terraform
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