forked from futurice/terraform-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
53 lines (41 loc) · 1.72 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
variable "region" {
description = "THe primary AWS region where all the resources will be created. See https://docs.aws.amazon.com/general/latest/gr/rande.html"
}
variable "tags" {
description = "AWS Tags to add to all resources created (where possible); see https://aws.amazon.com/answers/account-management/aws-tagging-strategies/"
type = "map"
default = {}
}
variable "site_domain" {
description = "The primary domain name of the website"
}
variable "bucket_name" {
description = "The name of the S3 bucket wich would host the static files"
}
variable "cf_price_class" {
description = "TThe price class for this distribution. One of PriceClass_All, PriceClass_200, PriceClass_100"
default = "PriceClass_100"
}
variable "default_root_object" {
description = "The object to return when the root URL is requested"
default = "index.html"
}
variable "default_ttl" {
description = "The default amount of time (in secs) that an object is cached in cloudfront in the absence of Cache-Control max-age or Expires header."
default = "86400"
}
variable "max_ttl" {
description = "The maximum amount of time (in secs) that an object is cached in cloudfront before cloudfront forwards another request ot origin to determine if the object has been updated."
default = "31536000" # 365 days
}
variable "min_ttl" {
description = "The minimum amount of time (in secs) that an object is cached in cloudfront before cloudfront forwards another request ot origin to determine if the object has been updated."
default = "0"
}
variable "error_ttl" {
description = "The minimum amount of time (in secs) that cloudfront caches an HTTP error code."
default = "30"
}
locals {
s3_origin_id = "myS3Origin"
}