-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
64 lines (54 loc) · 1.33 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
variable "common_tags" {
description = "This is a map type for applying tags on resources"
type = map
}
variable "s3_bucket_name" {
description = "The name of the bucket"
type = string
}
variable "s3_bucket_force_destroy" {
description = "String Boolean to set bucket to be undeletable (well more difficult anyway)"
type = string
}
variable "s3_bucket_acl" {
default = "private"
description = "Acl on the bucket"
type = string
}
variable "s3_bucket_policy" {
description = "The IAM policy for the bucket"
type = string
}
variable "s3_logging" {
description = "Enable logging on s3 bucket"
type = bool
default = true
}
variable "versioning" {
description = "Enable versioning on s3 bucket"
type = bool
default = true
}
variable "sse_algorithm" {
description = "The type of encryption algorithm to use"
type = string
default = "aws:kms"
}
variable "access_block" {
description = ""
type = map
default = {
block_public_acls = false
block_public_policy = false
ignore_public_acls = false
restrict_public_buckets = false
}
}
variable "mfa_delete" {
type = bool
description = "To enable/disable MFA delete"
default = true
}
locals {
env = substr(var.common_tags["environment"], 0, 1)
}