1+ variable "enabled" {
2+ type = bool
3+ default = true
4+ }
5+
6+ variable "namespace" {
7+ description = " Namespace (e.g. `eg` or `cp`)"
8+ type = string
9+ }
10+
11+ variable "stage" {
12+ description = " Stage (e.g. `prod`, `dev`, `staging`)"
13+ type = string
14+ }
15+
16+ variable "name" {
17+ description = " Name (e.g. `app` or `bastion`)"
18+ type = string
19+ }
20+
21+ variable "delimiter" {
22+ type = string
23+ default = " -"
24+ description = " Delimiter to be used between `namespace`, `stage`, `name` and `attributes`"
25+ }
26+
27+ variable "attributes" {
28+ type = list (string )
29+ default = []
30+ description = " Additional attributes (e.g. `1`)"
31+ }
32+
33+ variable "tags" {
34+ type = map (string )
35+ default = {}
36+ description = " Additional tags (e.g. map('BusinessUnit`,`XYZ`)"
37+ }
38+
39+ variable "region" {
40+ type = string
41+ description = " AWS region"
42+ }
43+
44+ variable "availability_zones" {
45+ type = list (string )
46+ description = " List of Availability Zones where subnets will be created"
47+ }
48+
49+ variable "zone_id" {
50+ type = string
51+ default = " "
52+ description = " Route53 DNS Zone ID"
53+ }
54+
55+ variable "instance_type" {
56+ type = string
57+ default = " t2.micro"
58+ description = " Elastic cache instance type"
59+ }
60+
61+ variable "user_data" {
62+ type = list (string )
63+ default = []
64+ description = " User data content"
65+ }
66+
67+ variable "ssh_user" {
68+ type = string
69+ description = " Default SSH user for this AMI. e.g. `ec2user` for Amazon Linux and `ubuntu` for Ubuntu systems"
70+ }
71+
72+ variable "ssh_key_path" {
73+ type = string
74+ description = " Save location for ssh public keys generated by the module"
75+ }
76+
77+ variable "generate_ssh_key" {
78+ type = bool
79+ description = " Whether or not to generate an SSH key"
80+ }
81+
82+ variable "security_groups" {
83+ type = list (string )
84+ description = " AWS security group IDs"
85+ }
86+
87+ variable "ingress_security_groups" {
88+ type = list (string )
89+ description = " AWS security group IDs allowed ingress to instance"
90+ }
91+
92+ variable "allowed_cidr_blocks" {
93+ type = list (string )
94+ description = " A list of CIDR blocks allowed to connect"
95+
96+ default = [
97+ " 0.0.0.0/0" ,
98+ ]
99+ }
100+
101+ variable "root_block_device_encrypted" {
102+ type = bool
103+ default = false
104+ description = " Whether to encrypt the root block device"
105+ }
106+
107+ variable "root_block_device_volume_size" {
108+ type = number
109+ default = 8
110+ description = " The volume size (in GiB) to provision for the root block device. It cannot be smaller than the AMI it refers to."
111+ }
112+
113+ variable "metadata_http_endpoint_enabled" {
114+ type = bool
115+ default = true
116+ description = " Whether the metadata service is available"
117+ }
118+
119+ variable "metadata_http_put_response_hop_limit" {
120+ type = number
121+ default = 1
122+ description = " The desired HTTP PUT response hop limit (between 1 and 64) for instance metadata requests."
123+ }
124+
125+ variable "metadata_http_tokens_required" {
126+ type = bool
127+ default = false
128+ description = " Whether or not the metadata service requires session tokens, also referred to as Instance Metadata Service Version 2."
129+ }
130+
131+ variable "associate_public_ip_address" {
132+ type = bool
133+ default = true
134+ description = " Whether to associate public IP to the instance."
135+ }
0 commit comments