When I try to deploy a websocket api I get "dev-we...
# help
e
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
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
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
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!