Answer the question
In order to leave comments, you need to log in
How to create WebSocket API via terraform?
Hello everyone,
can you tell me how to create using the terraform code
1) websocket api (my-communication-websocket)
2) At the first step in the $connect (Route Request) method, you need it to use the CommunicationsAuthorization Lambda function for Authentication
3) At the second step method $connect (Integration Request) set the type LAMBDA_PROXY and use the connection with mycommunications-lambda-function
point one - understandable -
resource "aws_apigatewayv2_api" "my_communication_websocket" {
name = "my-communication-websockуt"
description = "WebSocket API"
protocol_type = "WEBSOCKET"
route_selection_expression = "$request.body.action"
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question