-
Notifications
You must be signed in to change notification settings - Fork 3
/
main.tf
35 lines (32 loc) · 1.24 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
provider "aws" {
region = var.region
shared_credentials_file = "~/.aws/credentials" #para unix=~/.aws/credentials, para windows=%USERPROFILE%\.aws\credentials
profile = "default"
}
module "iam" {
source = "./modules/iam"
}
module "security" {
source = "./modules/security"
name = var.name
vpc_id = var.vpc_id
ingress_cidr_blocks = var.ingress_cidr_blocks
}
module "emr" {
source = "./modules/emr"
name = var.name
release_label = var.release_label
applications = var.applications
subnet_id = var.subnet_id
key_name = var.key_name
master_instance_type = var.master_instance_type
master_ebs_size = var.master_ebs_size
core_instance_type = var.core_instance_type
core_instance_count = var.core_instance_count
core_ebs_size = var.core_ebs_size
emr_master_security_group = module.security.emr_master_security_group
emr_worker_security_group = module.security.emr_worker_security_group
emr_ec2_instance_profile = module.iam.emr_ec2_instance_profile
emr_service_role = module.iam.emr_service_role
emr_autoscaling_role = module.iam.emr_autoscaling_role
}