-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
executable file
·98 lines (80 loc) · 2.89 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
# ================================================================== general ===
variable "yopass_encrypted_secret_max_length" {
type = number
description = "Maximum length of encrypted secrets."
default = 10000
validation {
condition = can(regex("^[1-9][0-9]*$", var.yopass_encrypted_secret_max_length))
error_message = "Must be a positive integer"
}
}
variable "yopass_version" {
type = string
description = "Version of Yopass to deploy."
default = "latest"
}
variable "server_waf_acl_name" {
type = string
description = "Name of the WAF ACL to associate with the API Gateway."
default = ""
}
variable "website_domain_name" {
type = string
description = "Domain name for Yopass website."
}
variable "website_certificate_arn" {
type = string
description = "ARN of the ACM certificate for the domain name."
}
variable "website_waf_acl_name" {
type = string
description = "Name of the WAF ACL to associate with the CloudFront distribution."
default = ""
}
# -------------------------------------------------------------------- auth ---
variable "auth_enabled" {
type = bool
description = "Whether to enable authentication power by Cognito User Pool."
default = false
}
variable "auth_cognito_idp_arn" {
type = string
description = "ARN of the Cognito User Pool to use for authentication. Only appliable if `auth_enabled` is `true`."
default = null
}
variable "auth_cognito_idp_domain" {
type = string
description = "Domain of the Cognito User Pool to use for authentication. Only appliable if `auth_enabled` is `true`."
default = null
}
variable "auth_cognito_idp_client_id" {
type = string
description = "Client ID of the Cognito User Pool to use for authentication. Only appliable if `auth_enabled` is `true`."
default = null
}
variable "auth_cognito_idp_client_secret" {
type = string
description = "Client secret of the Cognito User Pool to use for authentication. Only appliable if `auth_enabled` is `true`."
default = null
}
variable "auth_cognito_idp_client_scopes" {
type = list(string)
description = "Client scopes of the Cognito User Pool to use for authentication. Only appliable if `auth_enabled` is `true`."
default = []
}
variable "auth_cognito_idp_jwks" {
type = object({ keys = list(map(string)) })
description = "JWKS of the Cognito User Pool to use for authentication. Only appliable if `auth_enabled` is `true`."
default = null
}
# ------------------------------------------------------------------ context ---
variable "aws_account_id" {
description = "The AWS account ID that the module will be deployed."
type = string
default = ""
}
variable "aws_region_name" {
description = "The AWS region name where the module will be deployed."
type = string
default = ""
}