diff --git a/README.md b/README.md index 963d9a7..b43fa89 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,7 @@ No modules. | [geo\_restriction\_type](#input\_geo\_restriction\_type) | whitelist/blacklist | `string` | `"none"` | no | | [max\_ttl](#input\_max\_ttl) | Max cache ttl | `number` | `3600` | no | | [min\_ttl](#input\_min\_ttl) | Min cache ttl | `number` | `0` | no | +| [price\_class](#input\_price\_class) | Price class for this distribution | `string` | `"PriceClass_All"` | no | | [s3\_bucket\_id](#input\_s3\_bucket\_id) | Name of s3 bucket | `string` | n/a | yes | | [s3\_objects](#input\_s3\_objects) | The s3 onjects to allow access to ARN/objects | `list(any)` | n/a | yes | | [s3\_origin\_id](#input\_s3\_origin\_id) | unique origin id | `string` | `"s3Website"` | no | diff --git a/main.tf b/main.tf index 4711aa4..988bade 100644 --- a/main.tf +++ b/main.tf @@ -49,6 +49,7 @@ resource "aws_cloudfront_distribution" "this" { is_ipv6_enabled = var.enable_ipv6 default_root_object = var.default_root_object aliases = var.aliases + price_class = var.price_class default_cache_behavior { diff --git a/variables.tf b/variables.tf index 3bc67a7..07018ae 100644 --- a/variables.tf +++ b/variables.tf @@ -65,6 +65,12 @@ variable "aliases" { default = null } +variable "price_class" { + description = "Price class for this distribution" + type = string + default = "PriceClass_All" +} + variable "forward_query_strings" { description = "Enables/disables query string forwarding" type = bool