-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
49 lines (49 loc) · 1.37 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
#Define AWS Region
variable "region" {
description = "Infrastructure region"
type = string
default = "us-east-2"
}
#Define IAM User Access Key
variable "access_key" {
description = "The access_key that belongs to the IAM user"
type = string
sensitive = true
default = ""
}
#Define IAM User Secret Key
variable "secret_key" {
description = "The secret_key that belongs to the IAM user"
type = string
sensitive = true
default = ""
}
variable "vpc_cidr" {
description = "the vpc cidr"
default = "10.20.30.0/24"
}
variable "subnet_cidr_private" {
description = "cidr blocks for the private subnets"
default = ["10.20.30.0/27", "10.20.30.32/27", "10.20.30.64/27"]
type = list(any)
}
variable "subnet_cidr_public" {
description = "cidr blocks for the public subnets"
default = ["10.20.30.96/27", "10.20.30.128/27", "10.20.30.160/27"]
type = list(any)
}
variable "ami_name" {
description = "The ami name of the image from where the instances will be created"
default = ["amzn2-ami-amd-hvm-2.0.20230727.0-x86_64-gp2"]
type = list(string)
}
variable "instance_type" {
description = "The instance type of the EC2 instances"
default = "t2.medium"
type = string
}
variable "name" {
description = "The name of the application."
type = string
default = "app-3"
}