How to create a WebSocket API with serverless

Link to chapter — https://serverless-stack.com/examples/how-to-create-a-websocket-api-with-serverless.html

Is there a fix for this error:

Error: CloudWatch Logs role ARN must be set in account settings to enable logging (Service: AmazonApiGatewayV2; Status Code: 400; Error Code: BadRequestException; Request ID: SOME-UUID; Proxy: null)

Helper: This is a common error when configuring Access Log for WebSocket APIs. The AWS API Gateway service in your AWS account does not have permissions to the CloudWatch logs service. Follow this article to create an IAM role for logging to CloudWatch - https://aws.amazon.com/premiumsupport/knowledge-center/api-gateway-cloudwatch-logs/

The recommended link, and this one on SST both say to edit the API to add the role, but the deploy is blocked on the above error and the API cannot be created.

Is there a way to add the role and its ARN to the Stack?