-
Notifications
You must be signed in to change notification settings - Fork 4
/
variables.tf
77 lines (66 loc) · 2.53 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
variable "start" {
description = "Start of SAS token validity. Defaults to now."
type = string
// validation {
// condition = can(formatdate("", coalesce(var.start, timestamp())))
// error_message = "The start argument requires a valid RFC 3339 timestamp."
// }
default = null
}
variable "rotation_days" {
description = "How many days until a new token should be created. Exactly one of the rotation arguments should be given."
type = number
default = null
}
variable "rotation_hours" {
description = "How many hours until a new token should be created. Exactly one of the rotation arguments should be given."
type = number
default = null
}
variable "rotation_minutes" {
description = "How many minutes until a new token should be created. Exactly one of the rotation arguments should be given."
type = number
default = null
}
variable "rotation_months" {
description = "How many months until a new token should be created. Exactly one of the rotation arguments should be given."
type = number
default = null
}
variable "rotation_years" {
description = "How many years until a new token should be created. Exactly one of the rotation arguments should be given."
type = number
default = null
}
variable "rotation_margin" {
type = string
default = "24h"
// validation {
// condition = can(timeadd(timestamp(), var.rotation_margin))
// error_message = "The rotation_margin argument requires a valid duration."
// }
description = "Margin to set on the validity of the SAS token. The SAS token remains valid for this duration after the moment that the rotation should take place. Syntax is the same as the timeadd() function."
}
variable "write" {
description = "Collection of all writing-related permissions (includes creation and deletion)."
type = bool
default = true
}
variable "storage_account_name" {
description = "Name of the storage account"
type = string
}
variable "resource_group_name" {
description = "Name of the resource group"
type = string
}
variable "storage_container_name" {
description = "Name of the storage container. Leave this empty to create a SAS token for the complete storage account."
type = string
default = null
}
variable "signed_version" {
description = " (Optional) Specifies the signed storage service version to use to authorize requests made with this account SAS. Defaults to 2017-07-29."
type = string
default = "2017-07-29"
}