-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
134 lines (113 loc) · 2.06 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
variable "output_dir" {
type = string
default = "./"
}
variable "write_keys" {
type = bool
default = true
}
variable "write_certs" {
type = bool
default = true
}
variable "rsa_bits" {
type = number
default = null
}
variable "ecdsa_curve" {
type = string
default = null
}
variable "key_algorithm" {
type = string
default = "RSA"
}
variable "ca_common_name" {
type = string
default = null
}
variable "ca_organization" {
type = string
default = null
}
variable "ca_organizational_unit" {
type = string
default = null
}
variable "ca_street_address" {
type = list(string)
default = null
}
variable "ca_locality" {
type = string
default = null
}
variable "ca_province" {
type = string
default = null
}
variable "ca_country" {
type = string
default = null
}
variable "ca_postal_code" {
type = string
default = null
}
variable "ca_serial_number" {
type = string
default = null
}
variable "ca_validity_period_hours" {
type = number
# 10 years
default = 24 * 365.25 * 10
}
variable "ca_early_renewal_hours" {
type = number
# 1 year
default = 24 * 365
}
variable "ca_allowed_uses" {
type = list(string)
# Allowed uses found from https://registry.terraform.io/providers/hashicorp/tls/latest/docs/resources/self_signed_cert
default = [
"digital_signature",
"content_commitment",
"key_encipherment",
"data_encipherment",
"key_agreement",
"cert_signing",
"crl_signing",
"encipher_only",
"decipher_only",
"any_extended",
"server_auth",
"client_auth",
"code_signing",
"email_protection",
"ipsec_end_system",
"ipsec_tunnel",
"ipsec_user",
"timestamping",
"ocsp_signing",
"microsoft_server_gated_crypto",
"netscape_server_gated_crypto",
]
}
variable "ca_dns_names" {
type = list(string)
default = []
}
variable "ca_ip_addresses" {
type = list(string)
default = []
}
variable "ca_uris" {
type = list(string)
default = []
}
variable "leaf_certs" {
type = any
default = {}
}