-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
86 lines (63 loc) · 1.32 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_profile" {}
variable "access_key" {}
variable "secret_key" {}
variable "key_name" {}
variable "key_path" {}
variable "allowed_ip" {
type = "list"
description = "Your IP"
}
variable "vpc_region" {
type = "map"
default = {
primary = "us-east-1"
backup = "us-west-2"
}
}
variable "vpc_cidr" {
description = "AWS VP CIDR"
default = "10.1.0.0/16"
}
variable "availability_zone" {
type = "map"
default = {
us-east-1 = "us-east-1b,us-east-1d,us-east-1e"
us-west-2 = "us-west-2d,us-west-2b,us-west-2c"
}
}
variable "public_subnets" {
type = "list"
default = ["10.1.1.0/24", "10.1.2.0/24", "10.1.3.0/24"]
}
variable "private_subnets" {
type = "list"
default = ["10.1.4.0/24", "10.1.5.0/24", "10.1.6.0/24"]
}
variable "rds_subnets" {
type = "list"
default = ["10.1.7.0/24", "10.1.8.0/24", "10.1.9.0/24"]
}
variable "s3" {
type = "map"
default = {
bucket_name = "terraform-state-bucket-test"
versioning = true
trans_days = 90
expire_days = 180
lifecycle = true
}
}
variable "bastion" {
type = "map"
default = {
instance_type = "t2.micro"
count = 1
}
}
variable "ansible_server" {
type = "map"
default = {
instance_type = "t2.micro"
count = 1
}
}