-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
43 lines (35 loc) · 1.14 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
37
38
39
40
41
42
43
terraform {
required_version = "~> 1.3"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
}
}
}
module "hosting" {
source = "./modules/hosting"
bucket_name = local.bucket_name
}
module "tf-state" {
source = "./modules/tf-state"
bucket_name = local.bucket1_name
table_name = local.table_name
}
module "ecrRepo" {
source = "./modules/ecr"
ecr_repo_name = local.ecr_repo_name
}
module "ecsCluster" {
source = "./modules/ecs"
demo_app_cluster_name = local.demo_app_cluster_name
availability_zones = local.availability_zones
demo_app_task_famliy = local.demo_app_task_famliy
ecr_repo_url = module.ecrRepo.repository_url
container_port = local.container_port
demo_app_task_name = local.demo_app_task_name
ecs_task_execution_role_name = local.ecs_task_execution_role_name
application_load_balancer_name = local.application_load_balancer_name
target_group_name = local.target_group_name
demo_app_service_name = local.demo_app_service_name
}