V
V
Vadim2020-08-03 20:50:53
Amazon Web Services
Vadim, 2020-08-03 20:50:53

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"
}


, but how to make the second and third points and tie them in a chain

with respect,
Vadim

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question