-
Notifications
You must be signed in to change notification settings - Fork 0
/
variable.tf
84 lines (70 loc) · 2.06 KB
/
variable.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
75
76
77
78
79
80
81
82
83
84
# variable "region" {
# description = "The AWS region"
# type = string
# default = "ap-south-1"
# }
variable "instance-ami" {
description = "The AMI (Amazon Machine Image) that identifies the instance"
type = string
default = "ami-0e7a875609d14906f"
}
variable "instance-type" {
description = "The instance type to be used"
type = string
default = "t2.micro"
}
variable "instance-key-name" {
description = "The name of the SSH key to associate to the instance. Note that the key must exist already."
type = string
default = ""
}
variable "iam-role-name" {
description = "The IAM role to assign to the instance"
type = string
default = ""
}
variable "instance-associate-public-ip" {
description = "Defines if the EC2 instance has a public IP address."
type = string
default = "true"
}
variable "user-data-script" {
description = "The filepath to the user-data script, that is executed upon spinning up the instance"
type = string
default = ""
}
variable "instance-tag-name" {
description = "instance-tag-name"
type = string
default = "EC2-instance-created-with-terraform"
}
variable "vpc-cidr-block" {
description = "The CIDR block to associate to the VPC"
type = string
default = "10.0.0.0/16"
}
variable "subnet-cidr-block" {
description = "The CIDR block to associate to the subnet"
type = string
default = "10.0.1.0/24"
}
variable "vpc-tag-name" {
description = "The Name to apply to the VPC"
type = string
default = "VPC-created-with-terraform"
}
variable "ig-tag-name" {
description = "The name to apply to the Internet gateway tag"
type = string
default = "aws-ig-created-with-terraform"
}
variable "subnet-tag-name" {
description = "The Name to apply to the VPN"
type = string
default = "VPN-created-with-terraform"
}
variable "sg-tag-name" {
description = "The Name to apply to the security group"
type = string
default = "SG-created-with-terraform"
}