AGENT SKILL

lambda-alias-deployer

Provisions Lambda aliases with production defaults: alias creation pointing to a specific published version, traffic shifting (weighted aliases for canary/linear deployments), API Gateway stage integration (alias as stage trigger), CloudWatch alarm per alias, provisioned concurrency on alias, Lambda SnapStart integration. Emits a READY_TO_DEPLOY checklist with verification commands. Use when creating a Lambda alias, shifting traffic between versions, configuring canary deployment, setting up API Gateway stage with alias, adding provisioned concurrency to an alias, or enabling SnapStart. Triggers: create lambda alias, weighted alias, traffic shift lambda, canary deployment lambda, provisioned concurrency alias, lambda snapstart alias, API gateway stage alias, lambda version alias.

License 许可
Apache-2.0
最近更新
2026-09-24
Stars
★ 4
Forks
0

01 前言 Front Matter

name
lambda-alias-deployer
license
Apache-2.0
metadata
{ "tags": "aws, lambda, alias, cloudops, deploy, compute, provisioning, traffic-shifting, canary, provisioned-concurrency, snapstart", "phase": "1", "author": "Jacky Chan — AWS Community Builder", "domain": "aws-cloudops", "family": "Compute", "version": "0.1.0", "keywords": "aws, lambda, alias, cloudops, deploy, provisioning, traffic shifting, weighted alias, canary deployment, provisioned concurrency, snapstart, api gateway, cloudwatch alarm, lambda version, stage integration", "task_type": "deploy", "complexity": "high", "entry_point": "false", "skill_class": "capability", "when_to_use": "Invoke when the user wants to create a Lambda alias pointing to a specific published version, configure traffic shifting between versions (weighted aliases for canary or linear deployment), set up API Gateway stage integration with a Lambda alias, create CloudWatch alarms scoped to a specific alias, configure provisioned concurrency on an alias, or enable Lambda SnapStart with alias-based routing. Do NOT invoke for Lambda function creation (use lambda function deployers), for Lambda layer management, for EventBridge rule configuration, or for auditing existing Lambda alias configurations.", "dependencies": "aws-orchestrator", "requires_llm": "true", "verdict_shape": "READY_TO_DEPLOY | PREREQUISITES_MISSING", "lifecycle_status": "active", "supports_pipeline": "true" }
description
Provisions Lambda aliases with production defaults: alias creation pointing to a specific published version, traffic shifting (weighted aliases for canary/linear deployments), API Gateway stage integration (alias as stage trigger), CloudWatch alarm per alias, provisioned concurrency on alias, Lambda SnapStart integration. Emits a READY_TO_DEPLOY checklist with verification commands. Use when creating a Lambda alias, shifting traffic between versions, configuring canary deployment, setting up API Gateway stage with alias, adding provisioned concurrency to an alias, or enabling SnapStart. Triggers: create lambda alias, weighted alias, traffic shift lambda, canary deployment lambda, provisioned concurrency alias, lambda snapstart alias, API gateway stage alias, lambda version alias.
compatibility
Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). For live deployment: AWS CLI v2 with lambda, apigateway, cloudwatch, and iam access. Works with Terraform aws_lambda_alias / aws_lambda_provisioned_concurrency_config resources and CloudFormation AWS::Lambda::Alias templates.

02 资源文件 19

03 SKILL.md 正文

Lambda Alias Deployer

An AWS CloudOps agent skill that provisions Lambda aliases with correct defaults. The skill walks the operator through published version requirements, alias creation, traffic shifting, API Gateway stage integration, CloudWatch alarms per alias, provisioned concurrency, and SnapStart. It captures deployment and traffic decisions, explains why each default matters, and emits a READY_TO_DEPLOY checklist with copy-pasteable verification commands.

Activation keywords

create Lambda alias, weighted alias, traffic shift Lambda, canary deployment Lambda, provisioned concurrency alias, Lambda SnapStart alias, API Gateway stage alias, Lambda version alias, CloudWatch alarm per alias.

STRICT output contract

When this skill is invoked with a Lambda-alias-provisioning request (alias name, version, traffic weights, API Gateway integration, provisioned concurrency, SnapStart, or a partial configuration), the agent MUST respond with the READY_TO_DEPLOY checklist defined in the "Output format" section using the literal all-caps labels LAMBDA_ALIAS:, VERDICT:, CHECKLIST:, and VERIFICATION_COMMANDS:. Do NOT preface the checklist with prose, headings, or disclaimers — emit the block as the first lines of the response. This contract is what assertion-based evals and downstream provisioning pipelines rely on; deviating from the literal labels breaks automation silently.

If any prerequisite is missing, the verdict is PREREQUISITES_MISSING with a specific gap citation in the checklist (marked [✗]), and READY_TO_DEPLOY MUST NOT also appear.

Quick navigation

Section When to read
Prerequisites Always — verify before provisioning
Step 1 — Published version requirement Version dependency
Step 2 — Alias creation Basic alias setup
Step 3 — Traffic shifting (weighted aliases) Canary/linear deployment
Step 4 — API Gateway stage integration API Gateway routing
Step 5 — CloudWatch alarm per alias Monitoring
Step 6 — Provisioned concurrency on alias Cold-start elimination
Step 7 — Lambda SnapStart JVM/Python fast startup
Step 8 — Recent features Latest
NEVER do these things Review before signing off
Output format The literal checklist template
references/traffic-shifting-and-concurrency.md Weighted alias detail
references/provisioning-cli-commands.md Copy-pasteable CLI sequence

Prerequisites (verify before provisioning)

Before emitting provisioning commands, verify these prerequisites. If any are missing, the verdict is PREREQUISITES_MISSING with a specific gap citation.

Prerequisite Why it matters How to verify
AWS account with Lambda access Cannot provision without it aws sts get-caller-identity
Region selected Lambda is region-scoped aws configure get region
Lambda function exists Alias cannot point to a non-existent function aws lambda get-function --function-name <name>
Published version exists Alias MUST point to a published version, not $LATEST aws lambda list-versions-by-function --function-name <name>
Alias name identified Alias names are immutable after creation Provide a name (e.g., prod, staging, canary)
IAM execution role valid Function must have a valid role aws lambda get-function-configuration --function-name <name>
Two versions (for traffic shifting) Weighted aliases require two published versions aws lambda list-versions-by-function
SnapStart enabled on function (if applicable) SnapStart must be configured before alias-based routing aws lambda get-function-configuration --function-name <name> --query SnapStart
API Gateway API exists (if integrating) Stage must reference an existing API aws apigateway get-rest-apis

If any prerequisite is missing, output VERDICT: PREREQUISITES_MISSING and cite the specific gap.

Step 1 — Published version requirement

An alias MUST point to a published version. You cannot create an alias that points to $LATEST for production traffic.

Why published versions matter:

  • Published versions are IMMUTABLE snapshots of the function code and configuration at publish time.
  • Version numbers are auto-incremented (1, 2, 3, ...).
  • $LATEST is mutable — it changes on every update. Aliases pointing to $LATEST are unstable.
  • Traffic shifting requires published versions: you cannot shift weight to $LATEST.

Publish a version:

NEW_VERSION=$(aws lambda publish-version \
  --function-name my-function \
  --query Version --output text)

echo "Published version: $NEW_VERSION"

Common mistake: updating the function code and immediately creating an alias without publishing a version first. The alias has nothing stable to point to. Always publish-version before create-alias.

Step 2 — Alias creation

An alias is a named pointer to a specific published version. It provides a stable invocation ARN that consumers (API Gateway, EventBridge, etc.) can reference.

Create an alias:

aws lambda create-alias \
  --function-name my-function \
  --name prod \
  --function-version 5 \
  --description "Production alias"

Alias ARN format:

arn:aws:lambda:us-east-1:123456789012:function:my-function:prod

The qualifier :prod is the alias name. Consumers invoke the function using this ARN. When you update the alias to point to a new version, consumers automatically see the new version — no endpoint change needed.

Key rules:

  • Alias names are immutable. To rename, delete and re-create.
  • An alias can point to only ONE version at a time (without routing config). With routing config, it splits traffic between two.
  • Each function can have up to 1,000 aliases.
  • Alias description is mutable.

Step 3 — Traffic shifting (weighted aliases)

Traffic shifting splits invocations between two published versions. This enables canary and linear deployments without endpoint changes.

Set canary traffic (10% to new version):

aws lambda update-alias \
  --function-name my-function \
  --name prod \
  --function-version 5 \
  --routing-config AdditionalVersionWeights='{"6":0.1}'

This sends 90% of traffic to version 5 and 10% to version 6.

Progressively shift (25% → 50% → 100%):

# 25%
aws lambda update-alias \
  --function-name my-function \
  --name prod \
  --routing-config AdditionalVersionWeights='{"6":0.25}'

# 50%
aws lambda update-alias \
  --function-name my-function \
  --name prod \
  --routing-config AdditionalVersionWeights='{"6":0.5}'

# 100% (finalize — remove routing config)
aws lambda update-alias \
  --function-name my-function \
  --name prod \
  --function-version 6 \
  --routing-config '{}'

Rollback (shift back to old version):

aws lambda update-alias \
  --function-name my-function \
  --name prod \
  --function-version 5 \
  --routing-config '{}'

Common mistake: trying to shift traffic to $LATEST instead of a published version. Traffic shifting requires a specific version number in AdditionalVersionWeights. $LATEST is not a version.

Step 4 — API Gateway stage integration

API Gateway integrates with Lambda via the alias ARN. The alias provides a stable invocation target that survives version updates.

Integration setup:

# API Gateway method integration uses the alias ARN
# arn:aws:lambda:us-east-1:123456789012:function:my-function:prod

# Grant API Gateway permission to invoke the alias
aws lambda add-permission \
  --function-name my-function:prod \
  --statement-id apigateway-prod \
  --action lambda:InvokeFunction \
  --principal apigateway.amazonaws.com \
  --source-arn "arn:aws:execute-api:us-east-1:123456789012:abc123/*/GET/hello"

Key rules:

  • The integration URI must include the alias qualifier: arn:...:function:my-function:prod
  • Without the qualifier, API Gateway invokes $LATEST, bypassing the alias entirely. This defeats traffic shifting.
  • Permission must be granted to the ALIAS, not just the function. Use function-name:alias in add-permission.
  • When the alias shifts traffic, API Gateway automatically routes to the weighted versions — no API Gateway change needed.

Common mistake: configuring the API Gateway integration with the function ARN (no qualifier). This invokes $LATEST directly, bypassing the alias and all traffic-shifting logic. Always include the alias qualifier in the integration URI.

Step 5 — CloudWatch alarm per alias

CloudWatch metrics for Lambda are scoped by the FunctionName and Resource dimensions. To monitor a specific alias, use the alias ARN as the Resource dimension.

Create an alarm scoped to an alias:

aws cloudwatch put-metric-alarm \
  --alarm-name "my-function-prod-errors" \
  --metric-name Errors \
  --namespace AWS/Lambda \
  --statistic Sum \
  --period 60 \
  --threshold 5 \
  --comparison-operator GreaterThanThreshold \
  --dimensions Name=FunctionName,Value=my-function Name=Resource,Value=my-function:prod \
  --evaluation-periods 1 \
  --alarm-actions "arn:aws:sns:us-east-1:123456789012:alerts"

Key dimensions:

  • FunctionName: the function name (e.g., my-function).
  • Resource: the function + qualifier (e.g., my-function:prod). Without this, metrics are aggregated across all versions.

Metrics available per alias:

  • Errors: invocation errors scoped to this alias.
  • Throttles: throttled invocations scoped to this alias.
  • Duration: execution time scoped to this alias.
  • Invocations: total invocations scoped to this alias.
  • ConcurrentExecutions: concurrent executions (use alias qualifier).
  • ProvisionedConcurrencyInvocations / ProvisionedConcurrencySpilloverInvocations.

Common mistake: creating the alarm without the Resource dimension. The alarm aggregates across all versions and $LATEST, making it impossible to detect errors specific to the alias.

Step 6 — Provisioned concurrency on alias

Provisioned concurrency pre-initializes execution environments to eliminate cold starts. Configure it on the ALIAS so it follows traffic shifts.

Configure provisioned concurrency on an alias:

aws lambda put-provisioned-concurrency-config \
  --function-name my-function \
  --qualifier prod \
  --provisioned-concurrent-executions 10

Verification:

aws lambda get-provisioned-concurrency-config \
  --function-name my-function \
  --qualifier prod

Key rules:

  • The --qualifier is the alias name (e.g., prod), NOT a version number. This is what makes provisioned concurrency follow the alias.
  • Provisioned concurrency is billed regardless of invocations. Right- size based on steady-state, not peak.
  • Use Application Auto Scaling to adjust dynamically based on utilization (ProvisionedConcurrencyUtilization metric).

Auto Scaling for provisioned concurrency:

# Register as a scalable target
aws application-autoscaling register-scalable-target \
  --service-namespace lambda \
  --resource-id function:my-function:prod \
  --scalable-dimension lambda:function:ProvisionedConcurrency \
  --min-capacity 2 \
  --max-capacity 20

# Target tracking policy
aws application-autoscaling put-scaling-policy \
  --policy-name prod-provisioned-scaling \
  --service-namespace lambda \
  --resource-id function:my-function:prod \
  --scalable-dimension lambda:function:ProvisionedConcurrency \
  --policy-type TargetTrackingScaling \
  --target-tracking-scaling-policy-configuration '{
    "TargetValue": 70.0,
    "PredefinedMetricSpecification": {
      "PredefinedMetricType": "LambdaProvisionedConcurrencyUtilization"
    }
  }'

Step 7 — Lambda SnapStart

SnapStart reduces cold-start times for supported runtimes (Java, Python) by restoring pre-initialized execution environments from snapshots. SnapStart is configured on the FUNCTION, but snapshots are per-VERSION. The alias routes to the correct snapshot.

Enable SnapStart on the function:

aws lambda update-function-configuration \
  --function-name my-function \
  --snap-start ApplyOn=PublishedVersions

Publish a new version (SnapStart creates a snapshot for this version):

aws lambda publish-version \
  --function-name my-function

Verify SnapStart status:

aws lambda get-function-configuration \
  --function-name my-function \
  --qualifier 5 \
  --query 'SnapStart'

Key rules:

  • SnapStart must be enabled on the function BEFORE publishing versions. Existing versions do NOT get snapshots retroactively.
  • Each published version gets its OWN snapshot. The alias routes to the correct snapshot automatically.
  • SnapStart snapshots are restored in milliseconds (vs seconds for full JVM initialization).
  • SnapStart is available for java11, java17, java21, and python3.12 runtimes (as of 2026).

Common mistake: enabling SnapStart after publishing the version. The version does not get a snapshot. You must enable SnapStart on the function first, then publish a new version. The new version will have the snapshot.

SnapStart + traffic shifting: when you shift traffic between two versions, each version has its own snapshot. There is no additional configuration needed — the alias handles routing to the correct snapshot.

Step 8 — Recent features

The 2023-2026 feature notes (SnapStart for Python/Java 21, Auto Scaling, per-alias Insights, recursive detection, X-Ray) moved verbatim to references/advanced-patterns.md.

NEVER do these things

  1. NEVER point a production alias to $LATEST. $LATEST is mutable and changes on every function update. The alias target would change silently, bypassing traffic-shifting safety. Always point to a published version.

  2. NEVER configure provisioned concurrency on a version number instead of an alias. Version-level provisioned concurrency is lost when the alias re-points to a new version. Always use alias-level provisioned concurrency (--qualifier <alias-name>).

  3. NEVER shift traffic to $LATEST. Traffic shifting requires a published version number in AdditionalVersionWeights. $LATEST is not a version and will cause an API error.

  4. NEVER configure API Gateway integration without the alias qualifier. Without :prod (or the alias name), API Gateway invokes $LATEST directly, bypassing the alias and all traffic- shifting logic.

  5. NEVER enable SnapStart after publishing the version. SnapStart snapshots are created at publish time. Existing versions do NOT get snapshots retroactively. Enable SnapStart on the function first, then publish a new version.

Output format

LAMBDA_ALIAS: <function-name>:<alias-name> (version <n>, weight <n>%)
VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING
CHECKLIST:
  [✓|✗] Function: <function-name> (exists in <region>)
  [✓|✗] Published version: <n> (immutable snapshot)
  [✓|✗] Alias: <alias-name> → version <n>
  [✓|✗] Traffic shifting: <canary/linear> (version <old> <old-weight>% → version <new> <new-weight>%) | none
  [✓|✗] API Gateway integration: <api-id> stage <stage> → alias <alias-name> | N/A
  [✓|✗] CloudWatch alarm: <alarm-name> scoped to <function-name>:<alias-name> | N/A
  [✓|✗] Provisioned concurrency: <n> executions on alias <alias-name> | disabled
  [✓|✗] SnapStart: enabled (version <n> has snapshot) | disabled | not applicable
  [✓|✗] Auto Scaling: target=<n>% utilization, min=<n>, max=<n> | disabled
  [✓|✗] Tags: <key=value list>
VERIFICATION_COMMANDS:
  aws lambda get-alias --function-name <function-name> --name <alias-name>
  aws lambda get-provisioned-concurrency-config --function-name <function-name> --qualifier <alias-name>
  aws cloudwatch describe-alarms --alarm-names <alarm-name>

Worked example — alias with canary traffic shift and provisioned concurrency

LAMBDA_ALIAS: my-function:prod (version 5, weight 90%; version 6, weight 10%)
VERDICT: READY_TO_DEPLOY
CHECKLIST:
  [✓] Function: my-function (exists in us-east-1)
  [✓] Published version: 5 (current), 6 (canary)
  [✓] Alias: prod → version 5 (90%) + version 6 (10%)
  [✓] Traffic shifting: canary (version 5 90% → version 6 10%)
  [✓] API Gateway integration: abc123 stage prod → alias prod
  [✓] CloudWatch alarm: my-function-prod-errors scoped to my-function:prod
  [✓] Provisioned concurrency: 10 executions on alias prod
  [✓] SnapStart: disabled
  [✓] Auto Scaling: target=70% utilization, min=2, max=20
  [✓] Tags: Environment=production, Service=api
VERIFICATION_COMMANDS:
  aws lambda get-alias --function-name my-function --name prod
  aws lambda get-provisioned-concurrency-config --function-name my-function --qualifier prod
  aws cloudwatch describe-alarms --alarm-names my-function-prod-errors

References (load on demand)

  • references/traffic-shifting-and-concurrency.md — traffic-shifting strategies, rollback, pre-shift validation, provisioned concurrency placement matrix and Auto Scaling, monitoring, CodeDeploy comparison; now also the weighted-traffic-shifting lifecycle and the alias-vs-version provisioned-concurrency expert heuristics moved from SKILL.md.
  • references/provisioning-cli-commands.md — copy-pasteable CLI sequence for Steps 0-7 (publish, create-alias, canary shifting, API Gateway permission, alarms, provisioned concurrency, Auto Scaling).
  • references/advanced-patterns.md — Mindset framing (three misconceptions), the configuration dependency graph (immutable settings and cross-dependency gotchas), and the Step 8 recent-features notes moved from SKILL.md.
  • references/error-handling.md — API error deep dives (InvalidParameterValueException, ResourceConflictException, provisioned concurrency stuck, weight not changing, API Gateway invoking $LATEST, SnapStart snapshot not created) moved from SKILL.md.

Domain

AWS CloudOps / Lambda Alias Provisioning & Serverless Traffic Management.

AWS documentation

04 同仓库更多 Skills

jhkchan
jhkchan/aws-agent-skills

xray-tracing-deployer

Deploys AWS X-Ray distributed tracing with production-grade configuration: X-Ray daemon deployment (EC2 systemd, ECS sidecar, EKS DaemonSet, Lambda built-in), SDK instrumentation (Java, Python, Node.js, Go, .NET) with annotations and metadata, sampling rules (default reservoir + rate vs custom rules with URL / method / service-name predicates), service map generation, trace query and retrieval, groups and insights, CloudWatch ServiceLens integration, IAM permissions (PutTraceSegments, GetSamplingRules), and latest features (Lambda Powertools tracing, OpenTelemetry / ADOT Collector support, W3C trace context). Emits a READY_TO_DEPLOY checklist with every configuration item verified. Use when enabling X-Ray on a new application, adding tracing to ECS / EKS / Lambda, validating a sampling configuration, or generating daemon deployment CLI and IaC templates. Triggers: X-Ray, distributed tracing, X-Ray daemon, sampling rules, service map, X-Ray SDK, OpenTelemetry, ADOT, Lambda Powertools, CloudWatch ServiceLens.

★ 4
jhkchan
jhkchan/aws-agent-skills

wellarchitected-workload-auditor

Audits AWS Well-Architected Tool workloads for review staleness, per-pillar high-risk issue counts, milestone tracking gaps, and remediation plan completeness. Emits a deterministic verdict (STALE_REVIEW | HIGH_RISK | CONFIG_GAP | OK) per workload with per-pillar risk breakdown, milestone trend analysis, and specific remediation. Use when reviewing Well-Architected workloads, checking WA review freshness, auditing high-risk issues per pillar, validating milestone coverage, or tracking remediation plans.

★ 4
jhkchan
jhkchan/aws-agent-skills

wellarchitected-review-operator

Operates AWS Well-Architected Tool reviews end-to-end — creates workloads, runs pillar reviews (operational excellence, security, reliability, performance, cost optimization, sustainability, Prosperity), answers questions with risk-tier rationale, generates reports and improvement plans, creates milestones, and integrates with Trusted Advisor and Well-Architected Labs. Runs deterministic pre-checks (workload existence, lens availability, pillar coverage), emits the exact update-answer / get-consolidated-report CLI behind a CONFIRM gate, and verifies risk-tier transitions. Emits READY | BLOCKED | COMPLETED. Use when creating a workload, answering pillar questions, generating an improvement plan, creating a milestone, or integrating with Trusted Advisor. Triggers: well-architected tool, well architected review, workload review, pillar, operational excellence, security, reliability, performance, cost optimization, sustainability, prosperity, improvement plan, milestone, trusted advisor.

★ 4
jhkchan
jhkchan/aws-agent-skills

wafv2-web-acl-deployer

Provisions AWS WAFv2 Web ACLs with correct production defaults: scope selection (CLOUDFRONT vs REGIONAL), managed rule groups (AWSManagedRulesCommonRuleSet, SQLiRuleSet, LinuxRuleSet, WindowsRuleSet, IPReputationList, BotControlRuleSet, AmazonIpReputationList, ATP), custom rules (byte match, IP set, regex pattern, geo match, size constraint, rate-based), rule priority ordering, logging destinations (Kinesis Firehose, CloudWatch Logs, S3), resource association (ALB, API Gateway, CloudFront), rate-based rules with aggregate keys (IP, forwarded IP), Challenge and CAPTCHA actions, and account takeover prevention. Emits a READY_TO_DEPLOY checklist. Use when creating a Web ACL, attaching managed rules, configuring rate limiting, enabling WAF logging, associating a Web ACL with an ALB/API Gateway/CloudFront, or configuring CAPTCHA/Challenge actions. Triggers: create WAF Web ACL, WAFv2, managed rule groups, WAF rate limiting, WAF logging, WAF CAPTCHA, WAF Challenge action, bot control, ATP managed rules.

★ 4
jhkchan
jhkchan/aws-agent-skills

wafv2-web-acl-auditor

Audits AWS WAFv2 Web ACL configurations to determine whether the ACL provides effective protection: default-action posture (Allow vs Block), managed-rule-group coverage gaps, rule effectiveness (BLOCK vs COUNT, shadow/bypass rules, stale exclusions), rate-based rule correctness, logging and visibility configuration, and text-transformation bypass vectors. Emits a deterministic verdict per Web ACL. Use when reviewing a WAFv2 Web ACL for security posture, checking managed-rule coverage, validating rate-limit configuration, auditing WAF logging, or hardening a WAF before production deployment. Triggers: WAF, WAFv2, Web ACL, managed rule group, AWSManagedRules, rate-based rule, CAPTCHA, Challenge, OverrideAction, Count mode, forwarded IP, Bot Control, ATP, text transformation, WAF logging, WAF visibility, OWASP, SQLi, XSS, RFI.

★ 4
jhkchan
jhkchan/aws-agent-skills

waf-rule-deployer

Provisions AWS WAFv2 rule sets with production defaults: Web ACL creation (CloudFront scope in us-east-1 vs Regional scope), rule groups (managed vs custom) with capacity planning in WCU (Web ACL Capacity Units, 1500 default per ACL), managed rule groups (AWSManagedRulesCommonRuleSet, AWSManagedRulesSQLiRuleSet, AWSManagedRulesAmazonIpReputationList, AWSManagedRulesLinuxRuleSet, AWSManagedRulesWindowsRuleSet, AWSManagedRulesUnixRuleSet), custom rules (byte-match, regex pattern set, geo-match, rate-based), IP set and regex pattern set resources, rule priority ordering (lowest number evaluated first), action types (allow, block, count, CAPTCHA, Challenge), bot control managed rule group, account takeover. Triggers: create WAF rule, WAF managed rule group, WAF custom rule, WAF byte match, WAF geo match, WAF rate based rule, WAF IP set, WAF regex pattern set, WAF WCU budget, WAF CloudFront ACL, WAF logging Kinesis Firehose, WAF bot control, WAF ATP, WAF label matching, WAF Challenge action, WAF CAPTCHA.

★ 4