Skip to content

Commit fce3be6

Browse files
committed
Upgrade to TLS 1.3
1 parent e4dfb13 commit fce3be6

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

infrastructure/terraform/components/api/api_gateway_domain.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
resource "aws_api_gateway_domain_name" "main" {
22
regional_certificate_arn = aws_acm_certificate_validation.main.certificate_arn
33
domain_name = local.root_domain_name
4-
security_policy = "TLS_1_2"
4+
security_policy = "SecurityPolicy_TLS13_1_3_2025_09"
55

66
endpoint_configuration {
77
types = ["REGIONAL"]

infrastructure/terraform/components/api/api_gateway_rest_api_tls.tf

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
# AWS does not support updating the securityPolicy on an existing REST API from
2-
# TLS_1_0 to TLS_1_2 in-place. The policy must be set at creation time via the
3-
# x-amazon-apigateway-security-policy OpenAPI extension in the API body
4-
# (see spec.tmpl.json). This terraform_data resource forces recreation of the
5-
# aws_api_gateway_rest_api whenever the desired security policy changes, ensuring
6-
# the new API is always created with the correct TLS version.
71
locals {
8-
rest_api_security_policy = "SecurityPolicy_TLS12_PFS_2025_EDGE"
2+
rest_api_security_policy = "SecurityPolicy_TLS13_2025_EDGE"
93
rest_api_endpoint_access_mode = "STRICT"
104
}
115

0 commit comments

Comments
 (0)