Skip to content

Commit b9cdab7

Browse files
committed
Tidy of variables and code
1 parent e799936 commit b9cdab7

File tree

4 files changed

+9
-37
lines changed

4 files changed

+9
-37
lines changed

.github/workflows/master.yaml.old

Lines changed: 0 additions & 24 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

static-site/cloudfront.tf

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,17 @@ resource "aws_cloudfront_origin_access_control" "oac" {
6363
signing_behavior = "always"
6464
signing_protocol = "sigv4"
6565
provider = aws.default
66-
6766
}
6867

6968
resource "aws_cloudfront_response_headers_policy" "cloudfront" {
7069
name = "cloudfront-response-headers-policy"
7170
comment = "Response headers policy for ${var.domain_name}"
7271

7372
security_headers_config {
73+
content_type_options {
74+
override = true
75+
}
76+
7477
frame_options {
7578
frame_option = "DENY"
7679
override = true
@@ -81,10 +84,6 @@ resource "aws_cloudfront_response_headers_policy" "cloudfront" {
8184
override = true
8285
}
8386

84-
content_type_options {
85-
override = true
86-
}
87-
8887
strict_transport_security {
8988
access_control_max_age_sec = 15768000
9089
preload = false

static-site/variables.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
variable "bucket_name" {
22
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"
44
}
55

66
variable "domain_name" {
77
type = string
8-
description = "The custom domain for your CloudFront distribution"
8+
description = "The custom domain name for your CloudFront distribution"
99
}
1010

1111
variable "role_name" {
1212
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"
1414
default = "deploy-static-site"
1515
}
1616

1717
variable "repo" {
1818
type = string
19-
description = "The repo path for the project"
19+
description = "The repo path for your project"
2020
}
2121

2222
variable "cloudfront" {
@@ -37,7 +37,7 @@ variable "cloudfront" {
3737
minimum_protocol_version = "TLSv1.2_2021"
3838
})
3939
})
40-
description = "The configuration for the CloudFront distribution"
40+
description = "Additional configuration options for the CloudFront distribution"
4141
}
4242

4343
variable "tags" {

0 commit comments

Comments
 (0)