-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
40 lines (34 loc) · 1008 Bytes
/
Copy pathvariables.tf
File metadata and controls
40 lines (34 loc) · 1008 Bytes
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
variable "ami_id" {
description = "The ID of the AMI to use for the EC2 instance"
type = string
}
variable "instance_type" {
description = "The type of instance to start"
type = string
default = "t3.micro"
}
variable "vpc_cidr" {
description = "The CIDR block for the VPC"
type = string
default = "10.0.0.0/16"
}
variable "private_subnet_cidrs" {
description = "The CIDR blocks for the private subnets"
type = list(string)
default = ["10.0.1.0/24", "10.0.2.0/24"]
}
variable "public_subnet_cidrs" {
description = "The CIDR blocks for the public subnets"
type = list(string)
default = ["10.0.101.0/24", "10.0.102.0/24"]
}
variable "availability_zones" {
description = "The availability zones to use for subnets"
type = list(string)
default = ["us-east-1a", "us-east-1b"]
}
variable "common_tags" {
description = "Common tags to be applied to all resources"
type = map(string)
default = {}
}