forked from venkateshk111/terraform-beginners-guide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path02_variables.tf
39 lines (34 loc) · 832 Bytes
/
02_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
variable "aws_region" {
description = "AWS Region In Which Resources will be Created"
type = string
default = "us-east-1"
}
variable "owner" {
description = "Name of the Engineer who is creating Resources"
type = string
default = "Venkatesh"
}
variable "ec2_ami" {
description = "AWS EC2 AMI Amazon Linux 2023"
type = string
default = "ami-0df435f331839b2d6" # Amazon Linux 2023
}
variable "ec2_instance_type" {
description = "EC2 Instance Type"
type = map(string)
default = {
tmicro = "t2.micro"
tsmall = "t2.small"
tlarge = "t2.large"
}
}
variable "instance_count" {
description = "Number of EC2"
type = number
default = 1
}
variable "env" {
description = "Environment Type"
type = string
default = "dev"
}