-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
114 lines (91 loc) · 3.34 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
variable "region" {
default = "us-west-2"
description = "AWS region"
}
variable "name" {
description = "the name of your stack, e.g. \"demo\""
}
variable "environment" {
description = "the name of your environment, e.g. \"prod\""
default = "prod"
}
variable "availability_zones" {
description = "a comma-separated list of availability zones, defaults to all AZ of the region, if set to something other than the defaults, both private_subnets and public_subnets have to be defined as well"
default = ["us-west-2a", "us-west-2b", "us-west-2c"]
}
variable "cidr" {
description = "The CIDR block for the VPC."
default = "10.0.0.0/16"
}
variable "private_subnets" {
description = "a list of CIDRs for private subnets in your VPC, must be set if the cidr variable is defined, needs to have as many elements as there are availability zones"
default = ["10.0.0.0/20", "10.0.32.0/20", "10.0.64.0/20"]
}
variable "public_subnets" {
description = "a list of CIDRs for public subnets in your VPC, must be set if the cidr variable is defined, needs to have as many elements as there are availability zones"
default = ["10.0.16.0/20", "10.0.48.0/20", "10.0.80.0/20"]
}
variable "service_desired_count" {
description = "Number of tasks running in parallel"
default = 1
}
variable "container_port" {
description = "The port where the Docker is exposed"
default = 8080
}
variable "container_cpu" {
description = "The number of cpu units used by the task"
default = 512
}
variable "container_memory" {
description = "The amount (in MiB) of memory used by the task"
default = 2048
}
variable "health_check_path" {
description = "Http path for task health check"
default = "/"
}
variable "tsl_certificate_arn" {
description = "The ARN of the certificate that the ALB uses for https"
default = "arn:aws:acm:region:account:certificate/certificate_ID"
}
# Use the only one certificate if the region of application deployment is us-east-1. Because Cloudfront only accepts certificates
# at us-east-1
variable "tsl_certificatecloudfront" {
description = "The ARN of the certificate that the Cloudfront uses."
default = "arn:aws:acm:region:account:certificate/certificate_ID"
}
variable "app_bucket" {
description = "Bucket used by application previously created"
default = "virtual-promoter-test"
}
variable "admin_front_domain" {
description = "Bucket name used to host admin frontend"
default = "bucket-name.com"
}
variable "admin_front_bucket" {
description = "Domain name to host admin frontend"
default = "bucket-name.com"
}
variable "zone_id" {
description = "ID from hosted zone"
default = "Z011112222333D0ZJTJ"
}
variable "database_secret_arn" {
description = "Secret ARN from database admin and pasword previously created"
default = "arn:aws::secretsmanager:us-east-2:111122223333:secret:Database"
}
variable "secrets_arn" {
description = "Secret ARN from Twillio, Watson, Okta and AWS Credentials previously created"
default = ["arn:aws::secretsmanager:us-east-2:111122223333:secret:SecretName"
]
}
variable "secrets_values" {
description = "The secret ARN values and the name of variables"
default = [
{
valueFrom = "arn:aws::secretsmanager:us-east-2:111122223333:secret:SecretName:VARIABLE_NAME::",
name = "VARIABLE_NAME"
}
]
}