-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
81 lines (65 loc) · 1.64 KB
/
variables.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
variable "name_prefix" {
description = "Prefix for resource names"
type = string
default = "grafana"
}
variable "region" {
default = "us-east-2"
description = "AWS region"
}
variable "db_password" {
description = "RDS root user password"
sensitive = true
}
variable "ec2_task_execution_role_name" {
description = "ECS task execution role name"
default = "myEcsTaskExecutionRole"
}
variable "ecs_auto_scale_role_name" {
description = "ECS auto scale role name"
default = "myEcsAutoScaleRole"
}
variable "az_count" {
description = "Number of AZs to cover in a given region"
default = "2"
}
variable "app_image" {
description = "Docker image to run in the ECS cluster"
default = "bradfordhamilton/crystal_blockchain:latest"
}
variable "app_port" {
description = "Port exposed by the docker image to redirect traffic to"
default = 3000
}
variable "app_count" {
description = "Number of docker containers to run"
default = 3
}
variable "health_check_path" {
default = "/"
}
variable "fargate_cpu" {
description = "Fargate instance CPU units to provision (1 vCPU = 1024 CPU units)"
default = "1024"
}
variable "fargate_memory" {
description = "Fargate instance memory to provision (in MiB)"
default = "2048"
}
variable "vpc_id" {
default = "grafana"
}
variable "autoscaling_min" {
default = "3"
}
variable "autoscaling_max" {
default = "6"
}
variable "instance_class" {
description = "Size of db"
default = "db.t3.micro" #scale up as needed
}
variable "vpn_ip" {
description = "IP range for VPN, replace with real range"
default = ["1.2.3.4/32"]
}