Review the TLS policy for an API Gateway custom domain

Restrict old protocols with a supported TLS policy and verify client compatibility.

Description

The API Gateway custom domain’s SecurityPolicy determines the minimum TLS version and permitted ciphers for its clients. Choose a policy supported by the endpoint and API type.

Potential impact

Allowing older TLS versions may fall short of transport requirements. Raising the minimum may disconnect clients that support only older versions.

Remediation

Select a policy with a minimum of TLS 1.2 or later and the ciphers you need. Enhanced policies also require an endpoint access mode. After the update, verify the certificate and negotiated protocol from a client. Review other invocation endpoints and backend authentication separately.

Examples

Both excerpts configure an EDGE domain. Supply a hostname-matching ACM certificate ARN from us-east-1 in CertificateArn, plus DNS and API mappings.

Before

yaml
Resources:
  ApiDomain:
    Type: AWS::ApiGateway::DomainName
    Properties:
      DomainName: api.example.com
      CertificateArn: !Ref CertificateArn
      EndpointConfiguration:
        Types:
          - EDGE
      SecurityPolicy: TLS_1_0

TLS_1_0 permits several versions, including TLS 1.0 and 1.1.

After

yaml
Resources:
  ApiDomain:
    Type: AWS::ApiGateway::DomainName
    Properties:
      DomainName: api.example.com
      CertificateArn: !Ref CertificateArn
      EndpointConfiguration:
        Types:
          - EDGE
      SecurityPolicy: TLS_1_2

TLS_1_2 raises this domain’s minimum to TLS 1.2.

References