All checks
Medium APIGateway · regional

API Gateway V2 integrations should use HTTPS for private connections

Checks that the API's private integration over a VPC link has a TLS configuration, so traffic to the private backend uses HTTPS. A VPC link is private but does not encrypt, so without TLS the traffic is open to interception. Only HTTP APIs support a TLS configuration, so a WebSocket API's private integration fails.

service
APIGateway
severity
Medium
scope
evaluated in every region

How to fix it

  • Can break clients: Requests to the integration fail unless the load balancer listener serves HTTPS with a certificate for the secure server name.

In the console

API Gateway → APIs → the HTTP API → Integrations → the integration → Advanced settings

Secure server name
The host name on the backend's certificate, which API Gateway verifies
Stage deployment
Deploy the API, unless the stage deploys automatically

With the AWS CLI

aws apigatewayv2 update-integration --api-id <api-id> --integration-id <integration-id> --tls-config ServerNameToVerify=<backend-host-name>

With Terraform

resource "aws_apigatewayv2_integration" "this" {
  api_id             = var.api_id
  integration_type   = "HTTP_PROXY"
  integration_method = "ANY"
  integration_uri    = var.listener_arn
  connection_type    = "VPC_LINK"
  connection_id      = var.vpc_link_id

  tls_config {
    server_name_to_verify = var.backend_host_name
  }
}

See which of your accounts this check is failing on.

Book a live scan