PluginBench
Skill
Pass
Audit score 90

creating-api-gateway-stage

aws/agent-toolkit-for-aws

Create fully configured API Gateway stages with logging, tracing, throttling, and security controls.

What is creating-api-gateway-stage?

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

  • Configure CloudWatch logging for API Gateway stages
  • Enable X-Ray tracing for request tracking
  • Set up method-level throttling and rate limiting
  • Integrate AWS WAF web ACLs for security
  • Configure IAM roles and authorization options
  • Apply environment-specific stage settings

How to install creating-api-gateway-stage

npx skills add https://github.com/aws/agent-toolkit-for-aws --skill creating-api-gateway-stage
Prerequisites
  • Existing REST API in API Gateway
  • Deployment created for the API
  • IAM permissions to create stages and modify logging roles
  • CloudWatch log group (optional but recommended)
  • WAF web ACL ARN if using WAF integration
Claude Code
Cursor
Windsurf
Cline

How to use creating-api-gateway-stage

  1. 1.Identify your REST API ID and deployment ID
  2. 2.Define stage name and environment type (dev, test, production)
  3. 3.Configure CloudWatch logging by specifying log group and IAM role
  4. 4.Enable X-Ray tracing if needed for request tracing
  5. 5.Set throttling limits at stage and method levels
  6. 6.Associate a WAF web ACL if implementing web application firewall
  7. 7.Configure authorization and caching settings as needed
  8. 8.Create the stage and verify logging and tracing are active

Use cases

Good for
  • Deploy a REST API to a production stage with full monitoring and security
  • Set up separate dev, test, and staging environments with different throttling policies
  • Enable X-Ray tracing to debug API performance issues
  • Integrate WAF rules to protect an API from common web attacks
  • Configure CloudWatch logging to audit API access and errors
Who it's for
  • AWS API developers
  • DevOps engineers managing API deployments
  • Solutions architects designing multi-environment APIs
  • Security engineers implementing API protection

creating-api-gateway-stage FAQ

What permissions do I need to create an API Gateway stage?

You need IAM permissions for apigateway:CreateStage, logs:CreateLogDeliveryService (for CloudWatch), xray:PutTraceSegments (for X-Ray), and wafv2:AssociateWebACL (for WAF integration).

Why aren't CloudWatch logs appearing after stage creation?

Verify the CloudWatch role has correct permissions, the log group exists, and logging is enabled at both the stage and method levels. Check the full procedure for detailed troubleshooting steps.

Can I use different throttling limits for different API methods?

Yes, throttling can be configured at both the stage level (applies to all methods) and at individual method levels for fine-grained control.

What is the difference between stage and method-level configuration?

Stage-level settings apply to the entire stage, while method-level settings override stage settings for specific API methods, allowing environment-specific customization.

Do I need to use WAF with API Gateway stages?

WAF integration is optional but recommended for production stages. It provides protection against common web attacks and can be added or removed independently of stage creation.

Full instructions (SKILL.md)

Source of truth, from aws/agent-toolkit-for-aws.


name: creating-api-gateway-stage description: 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. version: 1

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.

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 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.

Related skills

More from aws/agent-toolkit-for-aws and the wider catalog.

CRcreating-data-lake-table logo

creating-data-lake-table

aws/agent-toolkit-for-aws

Create managed Iceberg tables on Amazon S3 with automatic compaction and snapshot management.

1.5k installsAudited
CRcreating-ec2-image-builder-pipeline logo

creating-ec2-image-builder-pipeline

aws/agent-toolkit-for-aws

Creates a complete EC2 Image Builder pipeline that builds a custom AMI with pre-installed software, distributes it to target regions, executes the pipeline, and creates a launch template. Use when setting up automated AMI creation with IAM roles, build components, image recipes, and infrastructure configuration.

1.2k installs
CRcreating-production-vpc-multi-az logo

creating-production-vpc-multi-az

aws/agent-toolkit-for-aws

Creates a production-ready VPC with public and private subnets across multiple Availability Zones, including internet gateway, NAT gateways, route tables, and security groups following AWS Well-Architected principles. Use when deploying multi-AZ VPC infrastructure with automatic CIDR planning and DNS resolution.

1.2k installsAudited
CRcreating-secrets-using-best-practices logo

creating-secrets-using-best-practices

aws/agent-toolkit-for-aws

Create and manage AWS Secrets Manager secrets with production-grade security controls and best practices.

1.4k installs
DEdebugging-lambda-timeouts logo

debugging-lambda-timeouts

aws/agent-toolkit-for-aws

Systematically debug AWS Lambda timeout failures by analyzing configuration, logs, metrics, and dependencies.

1.3k installsAudited
ENenabling-lambda-vpc-internet-access logo

enabling-lambda-vpc-internet-access

aws/agent-toolkit-for-aws

Enables internet access for AWS Lambda functions deployed in VPC subnets by creating NAT Gateway infrastructure, configuring public/private subnet routing, and updating security groups. Use when a VPC-attached Lambda function cannot reach the internet.

1.2k installsAudited