-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
87 lines (79 loc) · 1.86 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
variable "aws_region" {
description = "AWS region"
type = string
default = "eu-central-1"
}
variable "vpc_cidr_block" {
description = "CIDR block for VPC"
type = string
default = "10.0.0.0/16"
}
variable "public_subnet_count" {
description = "Number of public subnets."
type = number
default = 2
}
variable "private_subnet_count" {
description = "Number of private subnets."
type = number
default = 2
}
variable "public_subnet_cidr_blocks" {
description = "Available cidr blocks for public subnets."
type = list(string)
default = [
"10.0.1.0/24",
"10.0.2.0/24",
"10.0.3.0/24",
"10.0.4.0/24",
"10.0.5.0/24",
"10.0.6.0/24",
"10.0.7.0/24",
"10.0.8.0/24",
]
}
variable "private_subnet_cidr_blocks" {
description = "Available cidr blocks for private subnets."
type = list(string)
default = [
"10.0.101.0/24",
"10.0.102.0/24",
"10.0.103.0/24",
"10.0.104.0/24",
"10.0.105.0/24",
"10.0.106.0/24",
"10.0.107.0/24",
"10.0.108.0/24",
]
}
variable "subnet_cidr_block" {
description = "CIDR block for subnet"
type = string
default = "10.0.1.0/24"
}
variable "avail_zone" {
description = "az for subnet"
type = string
default = "eu-central-1a"
}
variable "depl_env_prefix" {
description = "Deployment environment prefix"
type = string
default = "dev"
}
variable "my_ip" {
description = "My IP for SG SSH ingress"
type = string
default = "0.0.0.126/32"
}
variable "instance_type" {
description = "EC2 instance type"
type = string
default = "t2.micro"
}
variable "public_key_location" {
description = "EC2 instance type"
type = string
//default = "C:\\Users\\MLT\\.ssh\\id_ed25519.pub"
default = "/home/mltamd/.ssh/ec2-key-for-frankfurt.pub"
}