File tree 4 files changed +9
-37
lines changed
4 files changed +9
-37
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -63,14 +63,17 @@ resource "aws_cloudfront_origin_access_control" "oac" {
63
63
signing_behavior = " always"
64
64
signing_protocol = " sigv4"
65
65
provider = aws. default
66
-
67
66
}
68
67
69
68
resource "aws_cloudfront_response_headers_policy" "cloudfront" {
70
69
name = " cloudfront-response-headers-policy"
71
70
comment = " Response headers policy for ${ var . domain_name } "
72
71
73
72
security_headers_config {
73
+ content_type_options {
74
+ override = true
75
+ }
76
+
74
77
frame_options {
75
78
frame_option = " DENY"
76
79
override = true
@@ -81,10 +84,6 @@ resource "aws_cloudfront_response_headers_policy" "cloudfront" {
81
84
override = true
82
85
}
83
86
84
- content_type_options {
85
- override = true
86
- }
87
-
88
87
strict_transport_security {
89
88
access_control_max_age_sec = 15768000
90
89
preload = false
Original file line number Diff line number Diff line change 1
1
variable "bucket_name" {
2
2
type = string
3
- description = " The name of the bucket which will hold your static site"
3
+ description = " The name of the bucket that will store your static site files "
4
4
}
5
5
6
6
variable "domain_name" {
7
7
type = string
8
- description = " The custom domain for your CloudFront distribution"
8
+ description = " The custom domain name for your CloudFront distribution"
9
9
}
10
10
11
11
variable "role_name" {
12
12
type = string
13
- description = " The name of the role and policy with the ability to deploy "
13
+ description = " The name of the role and policy that will enable deployment through pipelines "
14
14
default = " deploy-static-site"
15
15
}
16
16
17
17
variable "repo" {
18
18
type = string
19
- description = " The repo path for the project"
19
+ description = " The repo path for your project"
20
20
}
21
21
22
22
variable "cloudfront" {
@@ -37,7 +37,7 @@ variable "cloudfront" {
37
37
minimum_protocol_version = " TLSv1.2_2021"
38
38
})
39
39
})
40
- description = " The configuration for the CloudFront distribution"
40
+ description = " Additional configuration options for the CloudFront distribution"
41
41
}
42
42
43
43
variable "tags" {
You can’t perform that action at this time.
0 commit comments