-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvariables.tf
74 lines (61 loc) · 1.18 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
######################################################################
## Core
variable "name_prefix" {
type = string
default = "demo-env"
}
variable "aws_region" {
type = string
default = "us-east-1"
}
variable "env_name" {
type = string
default = "study"
}
variable "provisioner" {
type = string
default = "terraform"
}
######################################################################
## Network
variable "vpc_cidr" {
type = string
default = "10.0.0.0/16"
}
variable "public_subnets_cidr_root_newbits" {
type = number
default = 4
}
variable "public_subnets_cidr_sub_newbits" {
type = number
default = 4
}
######################################################################
## EC2
variable "instance_type" {
type = string
default = "t3a.micro"
}
variable "ami_id" {
type = string
default = "ami-0e9107ed11be76fde"
}
variable "monitoring_flag" {
type = bool
default = true
}
variable "ec2_keypair_public_key" {
type = string
}
variable "ingress_rules" {
type = list
default = ["http-80-tcp", "ssh-tcp"]
}
variable "ingress_cidr_blocks" {
type = list
default = ["0.0.0.0/0"]
}
variable "egress_rules" {
type = list
default = ["all-all"]
}