-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
107 lines (93 loc) · 2.15 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
variable "aws_region" {
type = string
description = "AWS region to use for resources."
default = "us-east-1"
}
variable "aws_azs" {
type = list(string)
description = "AWS Availability Zones"
default = ["us-east-1a", "us-east-1b", "us-east-1c", "us-east-1d"]
}
variable "enable_dns_hostnames" {
type = bool
description = "Enable DNS hostnames in VPC"
default = true
}
variable "vpc_cidr_block_a" {
type = string
description = "Base CIDR Block for VPC A"
default = "10.1.0.0/16"
}
variable "vpc_cidr_block_b" {
type = string
description = "Base CIDR Block for VPC B"
default = "10.2.0.0/16"
}
variable "vpc_public_subnets_cidr_block" {
type = list(string)
description = "CIDR Block for Public Subnets in VPC"
default = ["10.0.101.0/24", "10.0.102.0/24", "10.0.103.0/24", "10.0.104.0/24"]
}
variable "instance_type" {
type = string
description = "Type for EC2 Instance"
default = "t2.micro"
}
variable "sg_ingress_control_node" {
type = list(object({
description = string
port = number
}))
default = [
{
description = "Allows SSH access"
port = 22
},
{
description = "Allows HTTP traffic"
port = 80
},
]
}
variable "sg_ingress_managed_node" {
type = list(object({
description = string
port = number
}))
default = [
{
description = "Allows SSH access"
port = 22
},
{
description = "Allows HTTP traffic"
port = 80
},
]
}
variable "company" {
type = string
description = "Company name for resource tagging"
default = "CT"
}
variable "project" {
type = string
description = "Project name for resource tagging"
default = "Project"
}
variable "naming_prefix" {
type = string
description = "Naming prefix for all resources."
default = "CT"
}
variable "environment" {
type = string
description = "Environment for deployment"
default = "dev"
}
variable "instance_key" {
default = "WorkshopKeyPair"
}
variable "webserver_key" {
default = "ec2_keypair"
}