-
Notifications
You must be signed in to change notification settings - Fork 14
/
variables.tf
69 lines (60 loc) · 1.76 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
#Module : LABEL
#Description : Terraform label module variables.
variable "name" {
type = string
default = ""
description = "Name (e.g. `app` or `cluster`)."
}
variable "repository" {
type = string
default = "https://github.com/clouddrove/terraform-aws-keypair"
description = "Terraform current module repo"
}
variable "environment" {
type = string
default = ""
description = "Environment (e.g. `prod`, `dev`, `staging`)."
}
variable "label_order" {
type = list(any)
default = []
description = "label order, e.g. `name`,`application`."
}
variable "attributes" {
type = list(string)
default = []
description = "Additional attributes (e.g. `1`)."
}
variable "managedby" {
type = string
default = "[email protected]"
description = "ManagedBy, eg 'CloudDrove'."
}
#Module : KEY PAIR module variables.
variable "public_key" {
type = string
default = ""
description = "Name (e.g. `ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD3F6tyPEFEzV0LX3X8BsXdMsQ`)."
sensitive = true
}
variable "enable_key_pair" {
type = bool
default = true
description = "A boolean flag to enable/disable key pair."
}
# : PRIVATE KEY
variable "enable_private_key" {
type = bool
default = false
description = "Determines whether a private key will be created"
}
variable "private_key_algorithm" {
type = string
default = "RSA"
description = "Name of the algorithm to use when generating the private key. Currently-supported values are `RSA` and `ED25519`"
}
variable "private_key_rsa_bits" {
type = number
default = 4096
description = "When algorithm is `RSA`, the size of the generated RSA key, in bits (default: `4096`)"
}