sst / ion

❍ — a new engine for SST
https://ion.sst.dev
MIT License
1.11k stars 131 forks source link

APIGatewayWebsocket - CloudWatch Logs role ARN must be set in account settings to enable logging #373

Open tyrong opened 2 months ago

tyrong commented 2 months ago

Basic API gateway implementation. Config:

const websocketAPI = new sst.aws.ApiGatewayWebSocket("WebsocketAPI");
websocketAPI.route("$connect", "packages/functions/socket/connect.handler");
websocketAPI.route("$disconnect", "packages/functions/socket/disconnect.handler");
websocketAPI.route("$default", "packages/functions/socket/default.handler");

Issue:

×  Failed
   WebsocketAPI sst:aws:ApiGatewayWebSocket → WebsocketAPIStage aws:apigatewayv2:Stage
   StatusCode: 400, RequestID: 2866fa7c-f79b-4f31-8d07-affcb534831e, BadRequestException: CloudWatch Logs role ARN must be set in account settings to enable logging
amir-ziaei commented 2 months ago

This should help you: https://github.com/sst/sst/issues/1556