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 从公开仓库中收录这些内容。

举报或申请下架