Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tyrong opened this issue May 5, 2024 · 1 comment
Assignees

Comments

@tyrong
Copy link

tyrong commented May 5, 2024

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
@tyrong tyrong changed the title APIGatewayWebsocke - CloudWatch Logs role ARN must be set in account settings to enable logging APIGatewayWebsocket - CloudWatch Logs role ARN must be set in account settings to enable logging May 5, 2024
@amir-ziaei
Copy link

This should help you:
sst/sst#1556

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants