This repository has been archived by the owner on Sep 22, 2024. It is now read-only.
forked from gruntwork-io/terraform-google-static-assets
-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
78 lines (63 loc) · 3.07 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
# ---------------------------------------------------------------------------------------------------------------------
# REQUIRED PARAMETERS
# These variables are expected to be passed in by the operator
# ---------------------------------------------------------------------------------------------------------------------
variable "project" {
description = "The project ID to host the site in."
type = string
}
variable "website_domain_name" {
description = "The name of the website and the Cloud Storage bucket to create (e.g. static.foo.com)."
type = string
}
variable "create_dns_entry" {
description = "If set to true, create a DNS CNAME Record in Cloud DNS with the domain name in var.website_domain_name."
type = bool
}
variable "dns_managed_zone_name" {
description = "The name of the Cloud DNS Managed Zone in which to create the DNS CNAME Record specified in var.website_domain_name. Only used if var.create_dns_entry is true."
type = string
}
# ---------------------------------------------------------------------------------------------------------------------
# OPTIONAL PARAMETERS
# These variables have defaults, but may be overridden by the operator.
# ---------------------------------------------------------------------------------------------------------------------
variable "bucket_name" {
description = "name of bucket(if provided) otherwise dashed website domain name is used"
default = ""
}
variable "dns_record_ttl" {
description = "The time-to-live for the site CNAME record set (seconds)"
type = number
default = 60
}
variable "website_location" {
description = "Location of the bucket that will store the static website. Once a bucket has been created, its location can't be changed. See https://cloud.google.com/storage/docs/bucket-locations"
type = string
default = "US"
}
variable "enable_versioning" {
description = "Set to true to enable versioning. This means the website bucket will retain all old versions of all files. This is useful for backup purposes (e.g. you can rollback to an older version), but it may mean your bucket uses more storage."
type = bool
default = false
}
variable "index_page" {
description = "Bucket's directory index"
type = string
default = "index.html"
}
variable "not_found_page" {
description = "The custom object to return when a requested resource is not found"
type = string
default = "404.html"
}
variable "force_destroy_website" {
description = "If set to true, this will force the delete of the website bucket when you run terraform destroy, even if there is still content in it. This is only meant for testing and should not be used in production."
type = bool
default = false
}
variable "force_destroy_access_logs_bucket" {
description = "If set to true, this will force the delete of the access logs bucket when you run terraform destroy, even if there is still content in it. This is only meant for testing and should not be used in production."
type = bool
default = false
}