File tree Expand file tree Collapse file tree
infrastructure/terraform/components/api Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11resource "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" ]
Original file line number Diff line number Diff line change 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.
71locals {
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
You can’t perform that action at this time.
0 commit comments