-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.tf
39 lines (31 loc) · 845 Bytes
/
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
36
37
38
39
provider "aws" {
region = "${var.region}"
profile = "${var.profile}"
}
module "VPC" {
source = "./VPC"
vpc_cidr= "${var.vpc_cidr}"
}
module "Security_Group" {
source = "./Security_Group"
ip_range = "${var.ip_range}"
terraform_vpc_id="${module.VPC.terraform_vpc_id}"
}
module "CoreInfra" {
source = "./Instance/CoreInfra"
ssh_http_sg_id = "${module.Security_Group.ssh_http_sg_id}"
terraform_vpc_id = "${module.VPC.terraform_vpc_id}"
terraform_subnet_id="${module.VPC.terraform_subnet_id}"
}
module "FSS" {
source = "./Instance/FSS"
ssh_http_sg_id = "${module.Security_Group.ssh_http_sg_id}"
terraform_vpc_id = "${module.VPC.terraform_vpc_id}"
terraform_subnet_id="${module.VPC.terraform_subnet_id}"
}
module "Auto-Scaling" {
source = "./Auto-Scaling"
}
module "Cloud_Watch" {
source = "./Cloud-Watch"
}