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 Risposte
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
ESPERTO
con risposta un anno fa
  • 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

con risposta 2 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande