-
Notifications
You must be signed in to change notification settings - Fork 0
/
locals.tf
42 lines (36 loc) · 1.21 KB
/
locals.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
locals {
# application
application_port = 3000
region = "us-east-1"
host_port = 80
# ecs
ecs_network_mode = "awsvpc"
ecs_task_cpu = 256
ecs_task_memory = 512
ecs_task_image = "${aws_ecr_repository.repository.repository_url}:latest"
ecs_task_container_name = "${var.project}-${var.environment}"
ecs_service_desired_count = 3
# vpc
vpc_name = "${var.project}-${var.environment}-vpc"
vpc_cidr = "10.0.0.0/16"
vpc_azs = ["us-east-1a", "us-east-1b", "us-east-1c"]
vpc_private_subnets = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
vpc_public_subnets = ["10.0.101.0/24", "10.0.102.0/24", "10.0.103.0/24"]
vpc_enable_nat_gateway = true
#environment variables
ssm = {
DATABASE_URL = "value"
GOOGLE_CLIENT_ID = "value"
GOOGLE_SECRET = "value"
NODE_ENV = "value"
PORT = "value"
}
#cloudwatch
log_rentation_days = 30
#alb health check
application_matcher = 200
application_path = "/health"
application_interval = 60
application_healthy_threshold = 3
application_unhealthy_threshold = 3
}