WebSocket API Allow CloudWatch Logs TypeScript

0

I'm working with WebSocket API and I'm having a hard time configuring and setting up CloudWatch logs for my WebSocketStage() in CDK using TypeScript. I don't know if I'm missing something. Any idea?

2 Answers
0

Hi,

I assume you went through this: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigateway.StageProps.html.

What is not working? Can you elaborate more?

profile picture
EXPERT
answered a year ago
  • Hello, yeah I have seen those properties but they are not available in WebSocketApi() nor in WebSocketStage()

0

For folks who would stumble upon this question, As of writing this, WebSocket construct yet not allows configuring the AccessLogs. However internally cfn constructs does support setting up logs. This can be achieved via EscapeHatches and here you can find examples on how to do so. https://github.com/aws/aws-cdk/issues/11100

answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions