-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
70 lines (60 loc) · 1.56 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
variable "bastion_ip" {
description = "The public IP address allowed to access the bastion host"
type = list(string)
}
variable "public_ip" {
description = "The public IP address allowed to access the web server"
type = list(string)
}
# vpc_cidr range
variable "vpc_cidr" {
description = "The CIDR block for the VPC"
type = string
default = "10.0.0.0/16"
}
# vpc name
variable "vpc_name" {
description = "The name of the VPC"
type = string
default = "kode_vpc"
}
# subnet cidr blocks
variable "subnet1_cidr" {
description = "The CIDR block for the first subnet"
type = string
default = "10.0.1.0/24"
}
variable "subnet2_cidr" {
description = "The CIDR block for the second subnet"
type = string
default = "10.0.2.0/24"
}
# subnet availability zones
variable "subnet1_az" {
description = "The availability zone for the first subnet"
type = string
default = "us-west-1a"
}
variable "subnet2_az" {
description = "The availability zone for the second subnet"
type = string
default = "us-west-1c"
}
# EC2 instance name
variable "instance_name" {
description = "Web EC2 instance"
type = string
default = "kode_web_instance"
}
# EC2 instance type
variable "ec2_instance_type" {
description = "AWS EC2 instance type"
type = string
default = "t2.micro"
}
# EC2 AMI ID
variable "ec2_ami" {
description = "The AMI ID for the EC2 instance"
type = string
default = "ami-07d2649d67dbe8900" # Ubuntu Server 24.04 LTS AMI
}