You must be logged in to view saved presets
Integrates API Gateway with a private network load balancer using HTTP_PROXY.
resource "aws_apigatewayv2_integration" "example" {
api_id = "aws_apigatewayv2_api.example.id"
connection_id = "aws_apigatewayv2_vpc_link.example.id"
connection_type = "VPC_LINK"
credentials_arn = "aws_iam_role.example.arn"
description = "Example with a load balancer"
integration_method = "ANY"
integration_type = "HTTP_PROXY"
integration_uri = "aws_lb_listener.example.arn"
request_parameters = {
append:header.authforintegration = "$context.authorizer.authorizerResponse"
overwrite:path = "staticValueForIntegration"
append:header = "[object Object]"
}
response_parameters {
mappings = {
append:header.auth = "$context.authorizer.authorizerResponse"
append:header = "[object Object]"
}
status_code = 403
}
response_parameters {
mappings = {
overwrite:statuscode = "204"
}
status_code = 200
}
tls_config {
server_name_to_verify = "example.com"
}
}