-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
59 lines (51 loc) · 1.93 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
variable "confluent_api_key" {
description = "Confluent API Key (also referred as Cloud API ID)."
type = string
}
variable "confluent_api_secret" {
description = "Confluent API Secret."
type = string
sensitive = true
}
variable "day_count" {
description = "How many day(s) should the API Key be rotated for."
type = number
default = 30
validation {
condition = var.day_count >= 1
error_message = "Rolling day count, `day_count`, must be greater than or equal to 1."
}
}
variable "number_of_api_keys_to_retain" {
description = "Specifies the number of API keys to create and retain. Must be greater than or equal to 2 in order to maintain proper key rotation for your application(s)."
type = number
default = 2
validation {
condition = var.number_of_api_keys_to_retain >= 2
error_message = "Number of API keys to retain, `number_of_api_keys_to_retain`, must be greater than or equal to 2."
}
}
variable "key_display_name" {
description = "A descriptive name for the API key."
type = string
default = "Confluent Service Account API Key - {date} - Managed by Terraform Confluent"
}
variable "owner" {
description = "API Key Owner. Refer to [Confluent API Key Docs](https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/resources/confluent_api_key#argument-reference) for more info."
type = object({
id = string
api_version = string
kind = string
})
}
variable "resource" {
description = "Resource the API Key is associated with. Refer to [Confluent API Key Docs](https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/resources/confluent_api_key#argument-reference) for more info."
type = object({
id = string
api_version = string
kind = string
environment = object({
id = string
})
})
}