2021-01-14 04:19:53 +00:00
|
|
|
terraform {
|
|
|
|
backend "s3" {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
provider "aws" {
|
|
|
|
assume_role {
|
|
|
|
role_arn = var.role_arn
|
|
|
|
}
|
2022-05-27 18:49:39 +00:00
|
|
|
|
|
|
|
default_tags {
|
|
|
|
tags = {
|
|
|
|
Environment = "ConsulLoadTest"
|
|
|
|
}
|
|
|
|
}
|
2021-01-14 04:19:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
module "load-test" {
|
2022-05-27 18:49:39 +00:00
|
|
|
source = "../../../test/load/terraform"
|
2021-01-14 04:19:53 +00:00
|
|
|
|
|
|
|
vpc_az = ["us-east-2a", "us-east-2b"]
|
|
|
|
vpc_name = var.vpc_name
|
|
|
|
vpc_cidr = "10.0.0.0/16"
|
|
|
|
public_subnet_cidrs = ["10.0.1.0/24", "10.0.2.0/24"]
|
|
|
|
private_subnet_cidrs = ["10.0.3.0/24"]
|
|
|
|
test_public_ip = true
|
|
|
|
ami_owners = var.ami_owners
|
|
|
|
consul_download_url = var.consul_download_url
|
2021-05-21 18:19:26 +00:00
|
|
|
cluster_name = var.cluster_name
|
2022-05-27 18:49:39 +00:00
|
|
|
cluster_tag_key = var.cluster_tag_key
|
2021-01-14 04:19:53 +00:00
|
|
|
}
|