You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/complete/main.tf
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ module "cloudfront" {
29
29
wait_for_deployment=false
30
30
31
31
# When you enable additional metrics for a distribution, CloudFront sends up to 8 metrics to CloudWatch in the US East (N. Virginia) Region.
32
-
# This rate is charged only once per month, per metric (up to 8 metrics per distribution).
32
+
# This rate is charged only once per month, per metric (up to 8 metrics per distribution).
33
33
create_monitoring_subscription=true
34
34
35
35
create_origin_access_identity=true
@@ -89,11 +89,13 @@ module "cloudfront" {
89
89
default_cache_behavior={
90
90
target_origin_id ="appsync"
91
91
viewer_protocol_policy ="allow-all"
92
+
allowed_methods = ["GET", "HEAD", "OPTIONS"]
93
+
cached_methods = ["GET", "HEAD"]
94
+
compress =true
95
+
query_string =true
92
96
93
-
allowed_methods = ["GET", "HEAD", "OPTIONS"]
94
-
cached_methods = ["GET", "HEAD"]
95
-
compress =true
96
-
query_string =true
97
+
# This is id for SecurityHeadersPolicy copied from https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-response-headers-policies.html
0 commit comments