-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvars.tf
93 lines (78 loc) · 2.06 KB
/
vars.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
variable "domain_name" {
description = "The domain name without its schema, ie www."
type = string
}
variable "create_logging_bucket" {
description = "Do you want to create a nother bucket for logging"
type = bool
default = true
}
variable "acm_certificate_domain" {
default = null
description = "Domain of the ACM certificate"
}
variable "hosted_zone" {
default = null
description = "Route53 hosted zone"
}
variable "versioning_status" {
description = "Desired status for object versioning: True or False"
type = bool
default = false
}
variable "logging" {
description = "Access bucket logging configuration"
type = map(string)
default = {}
}
variable "environment" {
description = "The defining evironement of the Account: DEV, TST, STG, PRD, ROOT"
type = string
default = null
}
variable "tags" {
type = map(string)
default = {}
}
variable "block_public_acls" {
description = "Desired setting to block public ACL's"
type = bool
default = false
}
variable "block_public_policy" {
description = "Desired setting to block public policies"
type = bool
default = true
}
variable "ignore_public_acls" {
description = "Desired setting to ignore public ACL's"
type = bool
default = true
}
variable "restrict_public_buckets" {
description = "Desired setting to restrict public bucket policies for the bucket"
type = bool
default = true
}
variable "price_class" {
default = "PriceClass_All"
description = "CloudFront distribution price class"
}
variable "use_default_domain" {
default = false
description = "Use CloudFront website address without Route53 and ACM certificate"
}
locals {
tags = merge(
var.tags,
{
Name = var.domain_name
Environment = var.environment
},
)
}
variable "use_sec_headers" {
default = true
type = bool
description = "Set to false to not create a lambda function, and automatically associate to the cloudfront response lambda at edge."
}