-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathvariables.tf
executable file
·37 lines (31 loc) · 1.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
variable "root_domain_name" {
type = string
description = "The domain name of your website."
}
variable "website-bucket-region" {
type = string
description = "The primary region where your website will be hosted."
}
variable "backup-website-bucket-region" {
type = string
description = "The region where your backup bucket will be located."
}
variable "cloudfront_price_class" {
type = string
description = "The price class for the Cloudfront distribution. Valid entries are PriceClass_All, PriceClass_200, or PriceClass_100."
default = "PriceClass_100"
validation {
condition = contains(["PriceClass_All", "PriceClass_200", "PriceClass_100"], var.cloudfront_price_class)
error_message = "Valid values for var: cloudfront_price_class are PriceClass_All, PriceClass_200, or PriceClass_100."
}
}
variable "cloudfront_viewer_protocol_policy" {
type = string
description = "[https-only, redirect-to-https]"
default = "https-only"
}
variable "default_tags" {
type = map(string)
description = "Default tags for resources created in module. Type is map so please use format: {\"key\"=\"value\"}"
default = {}
}