https://serverless-stack.com/ logo
#help
Title
# help
e

Ernie Francis

02/26/2022, 3:57 AM
When I try to deploy a websocket api I get "dev-websocket-jason | CREATE_FAILED | AWS:ApiGatewayV2:Stage | ApiStage4697DF29 | CloudWatch Logs role ARN must be set in account settings to enable logging (Service: AmazonApiGatewayV2; Status Code: 400; Error Code: BadRequestException; Request ID: c25947ba-b05d-4d4e-8532-9434ad333b11; Proxy: null)"
I cloned the repo and ran the example as-is, that seems to work fine.
i can try to PR an updated guide. im noticing the guide isnt consistent with the sample websocket repo.
f

Frank

02/27/2022, 7:41 AM
Hi @Ernie Francis
I cloned the repo and ran the example as-is, that seems to work fine.
Do you mean it works if you try to deploy the repo as is, but fails after you made some changes to it?
e

Ernie Francis

03/15/2022, 1:28 AM
oh, i meant that when i started fresh and followed the doc instructions the end result gave me the deploy error, but when i scrapped that and cloned the repo directly from git the deploy command worked fine.
i was noting that following the guide, my end result code doesnt match the code example rom the sample repo
f

Frank

03/22/2022, 6:34 AM
Just realized that this is a known issue with API Gateway. There’s a one time setup required to enable API Gateway logging in your AWS account. Here are the instructions from AWS https://aws.amazon.com/premiumsupport/knowledge-center/api-gateway-cloudwatch-logs/
Give it a try!
11 Views