You must be logged in to view saved presets
Sets up an HTTP API with HTTP Proxy integration to forward requests to a specified backend.
resource "aws_apigatewayv2_api" "example" {
name = "example-http-api"
protocol_type = "HTTP"
}
resource "aws_apigatewayv2_integration" "example" {
api_id = aws_apigatewayv2_api.example.id
integration_method = "ANY"
integration_type = "HTTP_PROXY"
integration_uri = "https://example.com/{proxy}"
}
resource "aws_apigatewayv2_route" "example" {
api_id = aws_apigatewayv2_api.example.id
route_key = "ANY /example/{proxy+}"
target = "integrations/${aws_apigatewayv2_integration.example.id}"
}