Skip to content

Commit

Permalink
Add cloudfront distribution restriction (#148)
Browse files Browse the repository at this point in the history
* Update json policy

* Update policy format

* Update storage.tf to remove duplicate data reference

* Set no restriction on cloudfront distribution
  • Loading branch information
danielpalmeribm authored Jul 22, 2024
1 parent 87de0e4 commit da11a91
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/aws/ai_opt_out/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ variable "apply_to_ous_or_accounts" {
description = "A list of AWS Organization OU IDs or AWS Account IDs that should have the Policies applied (can be empty)."
default = []
}

6 changes: 6 additions & 0 deletions modules/products/static-site/cloudfront.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ resource "aws_cloudfront_distribution" "static_site_distribution" {
max_ttl = 86400
}

restrictions {
geo_restriction {
restriction_type = "none"
}
}

price_class = var.cloud_front_vars.cloudfront_price_class

tags = local.common_tags
Expand Down

0 comments on commit da11a91

Please sign in to comment.