-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathmain.tf
More file actions
38 lines (30 loc) · 1.06 KB
/
main.tf
File metadata and controls
38 lines (30 loc) · 1.06 KB
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
36
37
38
provider "aws" {
version = "~> 2.2.0"
alias = "us_east_1"
region = "us-east-1"
}
module "roles" {
source = "./infrastructure/roles"
}
module "users" {
source = "./infrastructure/users"
}
# Paris AWS Region
module "france" {
source = "./countries/france"
aws_region = "${var.aws_regions["paris"]}"
ec2_key_name = "${var.ec2_key_name}"
elasticbeanstalk_ec2_role = "${module.roles.elasticbeanstalk_ec2_role_name}"
elasticbeanstalk_service_role = "${module.roles.elasticbeanstalk_service_role_name}"
organization = "france"
}
# Frankfurt AWS Region
module "poland" {
source = "./countries/poland"
aws_region = "${var.aws_regions["frankfurt"]}"
ec2_key_name = "${var.ec2_key_name}"
elasticbeanstalk_ec2_role = "${module.roles.elasticbeanstalk_ec2_role_name}"
elasticbeanstalk_service_role = "${module.roles.elasticbeanstalk_service_role_name}"
organization = "poland"
user_names = "${module.users.user_names}"
}