Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
72 lines (60 sloc) 2.17 KB
// This terraform module imports all the services from the services/ directory,
// and configures them.
module "service_crater" {
source = "./services/crater"
ecr_repo = module.ecr_crater
agent_ami_id = data.aws_ami.ubuntu_bionic.id
agent_subnet_id = aws_subnet.rust_prod.id
agent_key_pair = aws_key_pair.buildbot_west_slave_key.key_name
common_security_group_id = aws_security_group.rust_prod_common.id
}
module "service_bastion" {
source = "./services/bastion"
ami_id = data.aws_ami.ubuntu_bionic.id
vpc_id = aws_vpc.rust_prod.id
subnet_id = aws_subnet.rust_prod.id
common_security_group_id = aws_security_group.rust_prod_common.id
key_pair = aws_key_pair.buildbot_west_slave_key.key_name
// Users allowed to connect to the bastion through SSH. Each user needs to
// have the CIDR of the static IP they want to connect from stored in AWS SSM
// Parameter Store (us-west-1), in a string key named:
//
// /prod/bastion/allowed-ips/${user}
//
allowed_users = [
"aidanhs",
"guillaumegomez",
"mozilla-mountain-view",
"mozilla-portland",
"mozilla-san-francisco",
"onur",
"pietro",
"quietmisdreavus",
"shep",
"simulacrum",
]
}
module "service_promote_release" {
source = "./services/promote-release"
static_bucket_arn = "arn:aws:s3:::static-rust-lang-org"
dev_static_bucket_arn = "arn:aws:s3:::dev-static-rust-lang-org"
ci_bucket_arn = "arn:aws:s3:::rust-lang-ci2"
}
module "service_cratesio_staging" {
source = "./services/cratesio"
providers = {
aws = "aws"
aws.east1 = "aws.east1"
}
webapp_domain_name = "staging.cratesio.com"
static_domain_name = "static.staging.cratesio.com"
dns_zone = aws_route53_zone.cratesio_com.id
static_bucket_name = "staging-crates-io"
inventories_bucket_arn = aws_s3_bucket.rust_inventories.arn
webapp_origin_domain = "staging-crates-io.herokuapp.com"
iam_prefix = "staging-crates-io"
}
module "service_docsrs" {
source = "./services/docsrs"
ecr_repo = module.ecr_docsrs
}
You can’t perform that action at this time.