Skip to content

Commit

Permalink
Forward query string to origin (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiasGees authored Aug 17, 2017
1 parent 39d3494 commit 8423700
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ See the [Terraform Modules documentation](https://www.terraform.io/docs/modules/
* `project`: (Optional) the name of a project this site belongs to. Default value = `noproject`
* `environment`: (Optional) the environment this site belongs to. Default value = `default`
* `tags`: (Optional) Additional key/value pairs to set as tags.
* `forward-query-string`: (Optional) Forward the query string to the origin. Default value = `false`

### Outputs

Expand Down
2 changes: 1 addition & 1 deletion site-main/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ resource "aws_cloudfront_distribution" "website_cdn" {
cached_methods = ["GET", "HEAD"]

"forwarded_values" {
query_string = false
query_string = "${var.forward-query-string}"

cookies {
forward = "none"
Expand Down
5 changes: 5 additions & 0 deletions site-main/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,9 @@ variable "tags" {
variable "trusted_signers" {
type = "list"
default = []
}

variable "forward-query-string" {
description = "Forward the query string to the origin"
default = false
}

0 comments on commit 8423700

Please sign in to comment.