Creating Api Gateway Stage

作者 aws188af2f810ce無授權條款2.8K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫今天更新

Creates an API Gateway stage with CloudWatch logging, X-Ray tracing, throttling, WAF integration, and IAM roles following AWS best practices. Use when deploying a REST API to different environments such as dev, test, or production.

僅含說明DevOps & Cloud
AI 產生的概覽

建立並設定 AWS API Gateway 階段,包含日誌、追蹤、節流、WAF 與 IAM 角色。

功能
提供建立 API Gateway 階段的領域知識,涵蓋 CloudWatch 日誌、X-Ray 追蹤、節流、WAF Web ACL 關聯、方法層級設定以及授權選項。它會指向一份參考程序以取得完整的建立步驟,並包含針對日誌未出現、階段建立失敗以及 WAF 阻擋正常請求的疑難排解說明。
適用情境
適用於將 REST API 部署到 dev、test 或 production 等不同環境時。也適合用來診斷階段相關問題,例如 CloudWatch 日誌未出現或 WAF 規則阻擋正常流量。
執行需求
僅為指示性內容,未附帶指令碼。它引用了一份可供模型閱讀的程序檔案。使用 AWS API Gateway、CloudWatch、X-Ray、WAF 與 IAM 需要適當的 AWS 憑證與權限。

Creating an API Gateway Stage

Overview

Domain expertise for creating and configuring API Gateway stages with comprehensive logging, monitoring, security, and throttling controls. Covers CloudWatch logging setup, X-Ray tracing, WAF web ACL association, method-level configuration, and authorization options.

Create an API Gateway stage

To create a fully configured API Gateway stage with logging, throttling, WAF, and authorization, follow the procedure exactly. See API Gateway stage creation procedure [blocked].

Troubleshooting

CloudWatch logs not appearing

Verify the CloudWatch role permissions, log group existence, and that logging is enabled at both stage and method levels. See the full procedure [blocked] for details.

Stage creation fails

Check REST API ID, deployment ID, IAM permissions, and stage naming conventions.

WAF blocking legitimate requests

Review WAF logs, adjust rules or add exceptions, and consider count mode for testing.

來源與署名

來源:aws/agent-toolkit-for-aws位於skills/specialized-skills/serverless-skills/creating-api-gateway-stage提交188af2f

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架