-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
84 lines (72 loc) · 1.64 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
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"]
}
variable "enable_dns_hostnames" {
type = bool
description = "Enable DNS hostnames in VPC"
default = true
}
variable "vpc_cidr_block" {
type = string
description = "Base CIDR Block for VPC"
default = "10.0.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"]
}
variable "instance_type" {
type = string
description = "Type for EC2 Instance"
default = "c5.large"
}
variable "sg_ingress_public" {
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 = "Demo"
}
variable "environment" {
type = string
description = "Environment for deployment"
default = "DEV"
}
variable "instance_key" {
default = "WorkshopKeyPair"
}
variable "ecs_cluster_name" {
default = "my-ecs-cluster"
}