-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
86 lines (73 loc) · 1.82 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
variable "aws_access_key" {
type = string
description = "Our AWS access key"
sensitive = true
}
variable "Company" {
type = string
description = "Company name for the instance"
}
variable "BillingCode" {
type = string
description = "Billing code for the instance (resouce tagging)"
}
variable "aws_secret_key" {
type = string
description = "Our AWS secret key"
sensitive = true
}
variable "aws_regions" {
type = list(string)
default = ["us-east-1", "us-east-2", "us-west-1", "us-west-2"]
description = "AWS region to deploy resources"
}
variable "instance_sizes" {
type = map(string)
default = {
micro = "t3.micro"
small = "t3.small"
medium = "t3.medium"
large = "t3.large"
}
description = "AWS instance size"
}
variable "vpc_cidr_block" {
type = string
description = "value of the VPC CIDR block"
default = "10.0.0.0/16"
}
variable "enable_dns_hostnames" {
type = bool
description = "enable DNS hostnames?"
default = true
}
variable "subnets_cidr_block" {
type = list(string)
description = "value of the Public Subnets CIDR block"
default = ["10.0.0.0/24", "10.0.1.0/24"]
}
variable "map_public_ip_on_launch" {
type = bool
description = "map public IP on launch?"
default = true
}
variable "num_of_public_subnets" {
type = number
description = "How many subnets would you like?"
default = 2
}
variable "num_of_instances" {
type = number
description = "How many EC2 instances would you like?"
default = 2
}
variable "naming_prefix" {
type = string
description = "value of the naming prefix"
default = "HeinanCA-dev"
}
variable "environment" {
type = string
description = "Which environment is this?"
default = "prod"
}