Get Hands-on with Amazon EKS - Workshop Event Series
Whether you're taking your first steps with Kubernetes or you're an experienced practitioner looking to sharpen your skills, our Amazon EKS workshop series delivers practical, real-world experience that moves you forward. Learn directly from AWS solutions architects and EKS specialists through hands-on sessions designed to build your confidence with Kubernetes. Register now and start building with Amazon EKS!
如何對 API Gateway WebSocket API 連線錯誤進行疑難排解?
2 分的閱讀內容
0
當我嘗試連線到 Amazon API Gateway WebSocket API 時,收到錯誤訊息。
簡短說明
API Gateway WebSocket API 連線錯誤可能發生的原因如下:
對後端發出請求的權限不足
API ID、AWS 區域及 API 階段欄位錯誤
後端整合發生錯誤
AWS Identity and Access Management (IAM) 驗證錯誤
解決方法
確認 WebSocket API 擁有向後端發出請求所需的權限
API Gateway 使用 IAM 角色、政策、標籤及 AWS Lambda Authorizer 來控制對 WebSocket API 的存取權。若要向後端發出請求,API Gateway 必須對這些資源擁有正確的權限。如需相關資訊,請參閱在 API Gateway 中控制和管理 WebSocket API 的存取權。