-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
83 lines (69 loc) · 2.6 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
# Creation flags first
variable "site_region" {
type = string
description = "Region in which to provision the site. Default: us-east-1"
default = "us-east-1"
}
variable "create_www_redirect_bucket" {
type = bool
description = "Defines whether or not to create a www redirect S3 bucket."
default = true
}
variable "content_bucket_versioning" {
type = bool
description = "Defines whether or not to set versioning on the content bucket."
default = true
}
variable "create_cloudfront_distribution" {
type = bool
description = "Defines whether or not to create a CloudFront distribution for the S3 bucket."
default = true
}
variable "log_include_cookies" {
type = bool
description = "Defines whether or not CloudFront should log cookies."
default = false
}
variable "site_tld" {
type = string
description = "TLD of the website you want to create. A bucket will be created that is named this. Note that the module will error out if this bucket already exists in AWS. Example: example.com"
}
variable "create_public_dns_zone" {
type = bool
description = "If set to true, creates a public hosted zone in Route53 for your site."
default = false
}
variable "create_public_dns_site_record" {
type = bool
description = "If set to true, creates a public DNS record in your site_tld hosted zone. If you do not already have a hosted zone for this TLD, you should set create_public_dns_zone to true. Otherwise, this will try to create a record in an existing zone or fail."
default = true
}
variable "create_public_dns_www_record" {
type = bool
description = "Defines whether or not to create a WWW DNS record for the site."
default = false
}
variable "root_page_object" {
type = string
description = "The root page object for the Cloudfront/S3 distribution."
default = "index.html"
}
variable "error_page_object" {
type = string
description = "The error page object for the Cloudfront/S3 distribution."
default = "404.html"
}
variable "cloudfront_price_class" {
type = string
description = "Price class for Cloudfront."
default = "PriceClass_100"
}
variable "acm_site_certificate_arn" {
type = string
description = "ARN of an ACM certificate to use for https on the CloudFront distribution."
}
variable "create_content_sync_user" {
type = bool
description = "Optionally create an IAM user and access keys to sync the content bucket. Note that this will store access information in your state file. Protect it accordingly."
default = false
}