forked from cloudposse/terraform-aws-key-pair
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
76 lines (64 loc) · 1.79 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
75
76
variable "namespace" {
type = string
default = ""
description = "Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp'"
}
variable "environment" {
type = string
default = ""
description = "Environment, e.g. 'prod', 'staging', 'dev', 'pre-prod', 'UAT'"
}
variable "stage" {
type = string
default = ""
description = "Stage, e.g. 'prod', 'staging', 'dev', OR 'source', 'build', 'test', 'deploy', 'release'"
}
variable "name" {
type = string
default = ""
description = "Solution name, e.g. 'app' or 'jenkins'"
}
variable "delimiter" {
type = string
default = "-"
description = "Delimiter to be used between `namespace`, `environment`, `stage`, `name` and `attributes`"
}
variable "attributes" {
type = list(string)
default = []
description = "Additional attributes (e.g. `1`)"
}
variable "tags" {
type = map(string)
default = {}
description = "Additional tags (e.g. `map('BusinessUnit','XYZ')`"
}
variable "ssh_public_key_path" {
type = string
description = "Path to SSH public key directory (e.g. `/secrets`)"
}
variable "generate_ssh_key" {
type = bool
default = false
description = "If set to `true`, new SSH key pair will be created"
}
variable "ssh_key_algorithm" {
type = string
default = "RSA"
description = "SSH key algorithm"
}
variable "private_key_extension" {
type = string
default = ""
description = "Private key extension"
}
variable "public_key_extension" {
type = string
default = ".pub"
description = "Public key extension"
}
variable "chmod_command" {
type = string
default = "chmod 600 %v"
description = "Template of the command executed on the private key file"
}