-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvars-global.tf
108 lines (90 loc) · 2.07 KB
/
vars-global.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
variable "cluster_name" {
description = "Terraform for TEST cluster"
default = "test"
}
variable "environment" {
description = "Environment"
default = "dev"
}
variable vpc_cidr {
default = "10.20.0.0/16"
}
variable "public_subnet_cidrs" {
description = "Assign the subnet's CIDRs"
default = {
"0" = "10.20.10.0/24"
"1" = "10.20.11.0/24"
}
}
variable "private_subnet_cidrs" {
description = "Private subnets"
default = {
"0" = "10.20.20.0/24"
"1" = "10.20.21.0/24"
}
}
variable "region" {
description = "AWS region"
default = "eu-west-1"
}
variable "availability_zone_count" {
description = "Number of Availability Zones"
default = "2"
}
variable "availability_zones" {
description = "Availability Zones"
default = {
"0" = "eu-west-1a"
"1" = "eu-west-1b"
}
}
variable "ecs_instance_type" {
description = "ECS instance type"
default = "t2.micro"
}
variable "key_name" {
description = "ssh key"
default = "key-pair-eu-west"
}
variable "internal_domain_aws" {
description = "Internal Domain Name in AWS"
default = "eu-west-1.compute.internal"
}
variable "ext_domain" {
description = "Top-level domain name"
default = "mycompany.com"
}
variable "int_domain" {
description = "Internal domain name"
default = "internal.mycompany.com"
}
variable "public_zone_id" {
description = "Public Zone to add DNS records"
default = "##Route 53 id ##"
}
variable "private_zone_id" {
description = "Private Zone to add DNS records"
default = "##Route 53 id"
}
variable "dns_ttl" {
description = "DNS TTL to use for records"
default = "300"
}
/* AMI ID ecs-optimized to use */
variable "ecs_amis" {
description = "Base AMI: amzn-ami-...-ecs-optimized"
default = {
"eu-west-1a" = "ami-XXXXXXXX"
}
}
variable "docker_registry" {
description = "Docker ECR registry URL"
default = "############.dkr.ecr.eu-west-1.amazonaws.com"
}
variable "lambda_function_env_vars" {
description = "Environment Variables for the Lambda function to run"
default = {
service = "test-service"
env = "dev"
}
}