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 réponses
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
répondu il y a un an
  • 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

répondu il y a 2 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions