-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
114 lines (94 loc) · 3.05 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
### S3 Bucket ###
variable "bucket_name" {
type = "string"
description = "bucket name"
}
variable "bucket_region" {
type = "string"
description = "AWS region of the S3"
}
variable "bucket_storage_class" {
type = "string"
description = "storage class for S3 bucket"
default = "STANDARD"
}
variable "bucket_access_user_names" {
type = "list"
description = "list of user names that need access to the buckets"
default = []
}
variable "bucket_access_role_names" {
type = "list"
description = "list of role names that need access to the buckets"
default = []
}
variable "bucket_force_destroy" {
type = "string"
description = "S3 bucket force destroy"
default = false
}
### S3 Bucket Cors ###
# see also https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html
variable "cors_allowed_headers" {
type = "list"
description = "The AllowedHeader element specifies which headers are allowed in a preflight request through the Access-Control-Request-Headers header. Each AllowedHeader string in the rule can contain at most one * wildcard character"
default = []
}
variable "cors_allowed_methods" {
type = "list"
description = "AllowedMethods Element: 1-n out of 'GET','PUT','POST','DELETE','HEAD'"
default = ["GET", "HEAD"]
}
variable "cors_allowed_origins" {
type = "list"
description = "AllowedOrigin Element (i.e. You can optionally specify * as the origin to enable all the origins to send cross-origin requests)"
default = ["*"]
}
variable "cors_expose_headers" {
type = "list"
description = "Each ExposeHeader element identifies a header in the response that you want customers to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object)."
default = []
}
variable "cors_max_age_seconds" {
description = "The MaxAgeSeconds element specifies the time in seconds that your browser can cache the response for a preflight request as identified by the resource, the HTTP method, and the origin."
default = 3000
}
### S3 Replication Bucket ####
variable "repl_bucket_name" {
type = "string"
description = "bucket name"
}
variable "repl_bucket_region" {
type = "string"
description = "AWS region of the S3 replica"
}
variable "repl_bucket_storage_class" {
type = "string"
description = "storage class for S3 bucket replica"
default = "STANDARD"
}
variable "repl_bucket_force_destroy" {
type = "string"
description = "S3 bucket replica force destroy"
default = false
}
### Extra Tags ###
variable "extra_tags" {
type = "map"
description = "A map of additional tags to add to the S3 buckets. Each element in the map must have the key = value format"
# example:
# extra_tags = {
# "Environment" = "Dev",
# "Squad" = "Ops"
# }
default = {}
}
# credentials
variable "access_key" {
type = "string"
description = "AWS access key"
}
variable "secret_key" {
type = "string"
description = "AWS secret key"
}