-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
36 lines (32 loc) · 1.13 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
36
module "database" {
source = "./database"
project_name = var.project_name
region = var.region
}
module "cognito" {
source = "./cognito"
project_name = var.project_name
region = var.region
lambda-role-arn = module.iam.lambda-dynamodb-role-arn
apigateway_arn = module.networking.apigateway_arn
}
module "iam" {
source = "./iam"
project_name = var.project_name
region = var.region
trips-dynamodb-table-arn = module.database.trips-dynamodb-table-arn
}
module "networking" {
source = "./networking"
project_name = var.project_name
region = var.region
fare-calculation-function-arn = module.compute.fare-calculation-function-arn
}
module "compute" {
source = "./compute"
region = var.region
project_name = var.project_name
lambda-role-arn = module.iam.lambda-dynamodb-role-arn
apigateway_arn = module.networking.apigateway_arn
trips-dynamodb-table-name = module.database.trips-dynamodb-table-name
}