-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
executable file
·80 lines (67 loc) · 2.18 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
variable "namespace" {
type = string
description = "Namespace, which could be your organization name, e.g. 'eg' or 'cp'"
}
variable "stage" {
type = string
description = "Stage, e.g. 'prod', 'staging', 'dev', or 'test'"
}
variable "name" {
type = string
default = "s3-image-resizer"
description = "Solution name, e.g. 'app' or 'cluster'"
}
variable "delimiter" {
type = string
default = "-"
description = "Delimiter to be used between `namespace`, `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 "thumbnail_widths" {
type = list(string)
description = "Target widths of generated thumbnails"
}
variable "user_enabled" {
type = bool
default = true
description = "Whether to create IAM User with RW permissions to created s3 bucket. Ignored when `bucket_enabled=false`."
}
variable "s3_region" {
type = string
default = ""
description = "The AWS Region where S3 Bucket is created or should be created. By default it is the region of current AWS provider."
}
variable "s3_acl" {
type = string
default = "private"
description = "The canned ACL to apply. Defaults to `private`. See: https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl"
}
variable "bucket_enabled" {
type = bool
default = true
description = "Whether to create S3 Bucket. If value is `false`, the argument `bucket_id` is required."
}
variable "bucket_versioning_enabled" {
type = bool
default = true
description = "Whether to turn bucket versioning on"
}
variable "bucket_id" {
type = string
default = ""
description = "The ID of S3 Bucket to use. If provided module won't create S3 bucket itself. Required if `bucket_enabled=false`."
}
variable "log_retention" {
type = number
default = 7
description = "Specifies the number of days you want to retain log events in the specified log group"
}