Skip to content

wordpress-fargate: modernize encryption settings #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions aws/wordpress_fargate/alb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ module "alb" {
{
"certificate_arn" = module.acm_alb.this_acm_certificate_arn
"port" = 443
"ssl_policy" = "ELBSecurityPolicy-FS-1-2-Res-2020-10"
},
]

Expand Down
4 changes: 2 additions & 2 deletions aws/wordpress_fargate/cloudfront.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ resource "aws_cloudfront_distribution" "this" {
http_port = 80
https_port = 443
origin_protocol_policy = "https-only"
origin_ssl_protocols = ["TLSv1", "TLSv1.1", "TLSv1.2"]
origin_ssl_protocols = ["TLSv1.2"]
}
}

Expand Down Expand Up @@ -110,7 +110,7 @@ resource "aws_cloudfront_distribution" "this" {
viewer_certificate {
acm_certificate_arn = module.acm.this_acm_certificate_arn
ssl_support_method = "sni-only"
minimum_protocol_version = "TLSv1.1_2016"
minimum_protocol_version = "TLSv1.2_2019"
}

# By default, cloudfront caches error for five minutes. There can be situation when a developer has accidentally broken the website and you would not want to wait for five minutes for the error response to be cached.
Expand Down
1 change: 1 addition & 0 deletions aws/wordpress_fargate/efs.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
resource "aws_efs_file_system" "this" {
creation_token = "${var.prefix}-${var.environment}"
encrypted = true
tags = var.tags
}

Expand Down