Global Accelerator Deployer
What this skill does
Provisions production-grade AWS Global Accelerator deployments with secure
defaults: anycast static IP allocation (Amazon pool or BYOIP), TCP/UDP
listeners, regional endpoint groups with traffic dials and health checks,
ALB/NLB/EC2/EIP endpoint types, client IP preservation for NLB and EC2
origins, flow logs to CloudWatch or S3, cross-account endpoints via RAM,
and custom routing accelerators. Emits a deployment plan with a
READY_TO_DEPLOY checklist.
Mindset
One-line takeaway: Global Accelerator is not "an ALB at the edge"
— it is an anycast network plane that routes user traffic from the
nearest AWS edge location into the AWS backbone, bypassing internet
congestion for the transit segment. The static IPs are anycast (advertised
from every edge globally); the endpoint selection is regional (per
endpoint-group traffic dial); and the origin's view of "client IP" depends
on endpoint type and PreserveClientIpEnabled.
Three facts make Global Accelerator provisioning different from "give me
two static IPs":
The two static IPs are anycast — they are NOT region-bound. The
same pair of IPs is advertised from every AWS edge location worldwide.
A user in Tokyo and a user in Frankfurt hit the same IPs but are
routed to different endpoint groups. The "region" of an accelerator
only controls where the control-plane metadata lives (and the
fixed-fee billing region) — it does not affect traffic routing.
Endpoint types within one endpoint group MUST be homogeneous. A
group can contain ALB OR NLB OR EC2 OR Elastic IP endpoints — mixing
types in the same group is rejected by the API. This is an AWS hard
constraint. Multi-type designs require separate endpoint groups
(each in a different region, by definition).
Client IP preservation changes the origin's security posture. For
ALB endpoints, the client IP always reaches the origin via
X-Forwarded-For (the L4 source IP at the ALB is an internal GA IP).
For NLB and EC2 endpoints, PreserveClientIpEnabled: true causes the
origin to see the real client IP — security groups and WAF rules at
the origin MUST allow client IP ranges. Disabling hides clients behind
AWS IPs and breaks IP-based rate limiting and geo-blocking at origin.
Quick navigation
| Section |
What it covers |
When to read it |
| Quick reference |
Verdict thresholds + checklist matrix + GA limits |
Before any operation |
| Pre-flight |
Accelerator metadata gate — endpoints, regions, BYOIP, IAM, RAM |
Before executing any CLI |
| Process |
Per-step planning: accelerator, listener, endpoint group, endpoints, IP preservation, flow logs, cross-account, custom routing |
When choosing each step |
| Common patterns |
Multi-region ALB active-active / single-region NLB / custom routing gaming |
Boilerplate lookup |
| STRICT output contract |
Required ACCELERATOR/VERDICT/PRE_CHECKS/STEPS/POST_VERIFY block |
Formatting the response |
| NEVER (top 5) |
Hard rules preventing common insecure patterns |
Review before deploy |
| Expert heuristic |
When client IP preservation is correct per endpoint type |
Choosing IP preservation |
Quick reference — verdict thresholds
| Verdict |
Trigger condition |
Action |
PREREQUISITES_MISSING |
Any pre-check failed (BYOIP CIDR not provisioned in Route 53 / not in PROVISIONED state, mixed endpoint types in one group, endpoint ARN unresolvable, endpoint region != endpoint-group region, accelerator in unsupported region, IAM permission missing, cross-account RAM share not accepted, flow log destination inaccessible, IPv6 requested on accelerator created before dual-stack support without migration) |
List failures, do NOT execute |
READY_TO_DEPLOY |
All pre-checks passed; awaiting CONFIRM gate |
Emit exact CLI sequence with full accelerator config, wait for operator yes |
Deployment checklist (every dimension must pass):
| Dimension |
Requirement |
Step |
| Static IP source |
Amazon pool (default, 2 anycast IPs) or BYOIP (PROVISIONED + advertised) |
Step 1 |
| IP version |
IPv4-only (default) or dual-stack IPv4+IPv6 (accelerator created 2023+) |
Step 1 |
| Accelerator region |
Any region where GA is available (control-plane only; traffic is global) |
Step 1 |
| Listener protocol |
TCP, UDP, or TCP_UDP (both) |
Step 2 |
| Listener port range |
One or more port ranges; each range 1-65535 |
Step 2 |
| Client affinity |
NONE (default, sticky on flow) or SOURCE_IP (sticky on source IP / 30s) |
Step 2 |
| Endpoint group region |
One group per AWS region per listener |
Step 3 |
| Traffic dial |
0-100 (percentage). 0 drops all traffic to the group; 100 is full |
Step 3 |
| Health check |
Interval 10 or 30 sec, threshold 1-10, protocol TCP/HTTP/HTTPS, path (HTTP/HTTPS) |
Step 3 |
| Endpoint type |
ALB, NLB, EC2 instance, or Elastic IP — homogeneous per group |
Step 4 |
| Endpoint weight |
0-999 (relative weight within group). 0 = drained |
Step 4 |
| Client IP preservation |
ALB: always via X-Forwarded-For. NLB/EC2: PreserveClientIpEnabled |
Step 5 |
| Flow logs |
CloudWatch Logs group OR S3 bucket with GA service principal grant |
Step 6 |
| Cross-account endpoints |
RAM resource share accepted in target account; endpoint ARN in peer account |
Step 7 |
| Custom routing |
Deterministic port-to-endpoint mapping (gaming, VoIP, media) |
Step 8 |
Global Accelerator limits (2026):
- Accelerators per account (default): 100 (soft limit).
- Endpoint groups per listener: 1 per region (max ~20 groups, one per region).
- Endpoints per endpoint group: 100 (soft limit).
- Listeners per accelerator: 100.
- Port ranges per listener: 10.
- BYOIP IPv4 CIDR: /24 minimum (Amazon must approve ROA).
- Traffic dial granularity: integer 0-100.
- Endpoint weight granularity: integer 0-999.
- Health check interval: 10 or 30 seconds only.
- Dual-stack: requires accelerator created after Nov 2023 (or migrated).
Pre-flight: deployment specification gate (run before architecture output)
Before producing the deployment plan, validate the input specification.
Several requirements block deployment — proceeding with an invalid
spec produces a non-functional or insecure accelerator.
Moved verbatim to references/diagnostic-commands.md — load on demand.
Covers: Live-account pre-flight checks (IAM, endpoint ARN/region, BYOIP state, RAM share, flow-log destinations). See the "References (load on demand)" section.
| Attribute |
Value |
Effect on plan |
| Endpoint type |
ALB |
Client IP via X-Forwarded-For. Health check via ALB target group. |
| Endpoint type |
NLB |
PreserveClientIpEnabled controls origin visibility of client IP. |
| Endpoint type |
EC2 instance |
PreserveClientIpEnabled controls origin visibility of client IP. Single-AZ — pair with health check. |
| Endpoint type |
Elastic IP |
Static origin IP; client IP preserved by definition (EIP is the endpoint). |
| BYOIP |
true |
CIDR MUST be PROVISIONED in Route 53, advertised via GA. |
| Cross-account |
true |
RAM share ACTIVE; endpoint ARN belongs to peer account. |
| Custom routing |
true |
Listener port range maps deterministically to endpoint ports. |
| Dual-stack |
true |
Accelerator receives IPv4 and IPv6 anycast IPs. Requires accelerator created 2023+. |
If the deployment spec is incomplete (missing endpoint ARNs, region,
or listener protocol), output:
ACCELERATOR_SPEC: <name-or-unknown>
VERDICT: PREREQUISITES_MISSING
REASON: Deployment specification is missing required fields (<list>).
Cannot produce an accelerator plan without <field> — the resulting
deployment would be non-functional or insecure.
REQUIRED:
- endpoint_type (ALB, NLB, EC2, or Elastic IP)
- region(s) for endpoint groups
- listener_protocol (TCP, UDP, or TCP_UDP)
- listener_port_range(s)
- traffic_steering_model (single-region, multi-region active-active, active-passive)
- flow_log_destination (CloudWatch or S3, optional but recommended)
Process — Architecture planning (apply in order, produce deployment plan)
Step 0: Expert knowledge — non-obvious Global Accelerator behaviors that change the plan
Moved verbatim to references/advanced-patterns.md — load on demand.
Covers: Step 0: Expert knowledge — non-obvious Global Accelerator behaviors that change the plan. See the "References (load on demand)" section.
Step 1: Accelerator creation — IP source and IP version
aws globalaccelerator create-accelerator \
--name prod-ga \
--ip-addresses "IPV4" \
--idempotency-token "$(uuidgen)"
BYOIP variant:
# 1. Provision in Route 53 (one-time per CIDR)
aws ec2 provision-byoip-cidr \
--cidr "203.0.113.0/24" \
--cidr-authorization-context Message="$(cat signed-message.txt)",MessageSignature="..."
# 2. Wait for PROVISIONED
aws ec2 describe-byoip-cidrs --max-results 10
# 3. Create accelerator advertising the BYOIP CIDR
aws globalaccelerator create-accelerator \
--name prod-ga-byoip \
--ip-addresses "IPV4" \
--byoip-cidrs "203.0.113.0/24" \
--idempotency-token "$(uuidgen)"
| IP source |
Use case |
Notes |
| Amazon pool (default) |
New accelerator, no IP reputation constraints |
2 anycast IPs allocated permanently. |
| BYOIP |
Existing IP reputation, allowlist-enforced partners, predictable CIDR |
Requires /24 minimum, ROA + Route 53 provisioning, PROVISIONED state. |
| Dual-stack (Amazon pool) |
IPv6-native clients (mobile, IoT) |
IPv4 + IPv6 anycast IPs. Requires accelerator created Nov 2023+. |
| BYOIP dual-stack |
Existing IPv4 + IPv6 ranges |
Both CIDRs must be PROVISIONED. |
Step 2: Listener — protocol, port range, client affinity
aws globalaccelerator create-listener \
--accelerator-arn <arn> \
--protocol "TCP" \
--port-ranges "FromPort=443,ToPort=443" \
--client-affinity "NONE" \
--region us-west-2
| Protocol |
When to use |
TCP |
HTTPS, HTTP/2, HTTP/3 (TCP), SSH, custom TCP protocols |
UDP |
QUIC, VoIP (RTP/UDP), gaming (UDP), DNS-over-UDP |
TCP_UDP |
Same port on both protocols (e.g., DNS service on 53) |
| Client affinity |
When to use |
NONE (default) |
Stateless endpoints (HTTP, API). GA load-balances per-flow. |
SOURCE_IP |
Stateful endpoints (gaming sessions, long-lived streams). Sticky for the source IP. |
Anti-pattern: NEVER set SOURCE_IP for stateless HTTP workloads — it
defeats load balancing and pins one user to one endpoint, creating hot
shards when a CDN or NAT sits in front of many users.
Step 3: Endpoint group — region, traffic dial, health check
aws globalaccelerator create-endpoint-group \
--listener-arn <arn> \
--endpoint-group-region "us-east-1" \
--traffic-dial 100.0 \
--health-check-interval-seconds 30 \
--health-check-path "/" \
--health-check-port 443 \
--health-check-protocol "HTTPS" \
--threshold-count 3 \
--region us-west-2
| Traffic dial |
Behavior |
| 100 |
Full traffic to this region's endpoints (active-active peer: also 100). |
| 50 |
Half-weight relative to peer regions (canary, blue-green). |
| 5 |
Minimal traffic (drain candidate — leave at 5 until connections close, then 0). |
| 0 |
Hard cut. All new flows go to peer regions. Existing flows may be dropped. |
| Health check interval |
Use case |
| 10 seconds |
Real-time / latency-sensitive workloads. Higher GA cost. |
| 30 seconds (default) |
General-purpose. Lower cost, slower failover. |
Threshold count: number of consecutive failed health checks before
GA marks the endpoint unhealthy. Default 3. Lower for faster failover
(at the cost of more flapping).
Step 4: Endpoints — type, ARN, weight, homogeneity rule
aws globalaccelerator add-endpoints \
--endpoint-group-arn <arn> \
--endpoint-configurations \
'[{"EndpointId":"arn:aws:elasticloadbalancing:us-east-1:111111111111:loadbalancer/app/prod-alb/abc","Weight":128,"ClientIPReservationEnabled":false}]' \
--region us-west-2
| Endpoint type |
ARN shape |
Notes |
| ALB |
arn:aws:elasticloadbalancing:<region>:<acct>:loadbalancer/app/<name>/<id> |
Client IP via X-Forwarded-For. Health check via target group. |
| NLB |
arn:aws:elasticloadbalancing:<region>:<acct>:loadbalancer/net/<name>/<id> |
PreserveClientIpEnabled controls L4 source IP. |
| EC2 |
i-0123456789abcdef0 (instance ID, not ARN) |
Single-AZ. PreserveClientIpEnabled controls L4 source IP. |
| Elastic IP |
eipalloc-0123456789abcdef0 (allocation ID) |
Static L4 endpoint. Client IP preserved by definition. |
Homogeneity rule: within a single endpoint group, all endpoints MUST
be the same type. Mixing types returns ValidationError. Multi-type
designs require separate endpoint groups (in different regions).
Weight: relative within the group. If endpoint A has weight 128 and
endpoint B has weight 64, A gets 2/3 of the group's traffic and B gets
1/3. Weight 0 = graceful drain (no new connections, existing stay).
Step 5: Client IP preservation — origin visibility decision
| Endpoint type |
PreserveClientIpEnabled default |
Effect |
| ALB |
N/A (always via X-Forwarded-For) |
ALB sees AWS GA IP at L4; reads client IP from X-Forwarded-For. Origin security group can scope to GA prefix pool. |
| NLB |
false (recommended default) |
NLB sees AWS GA IP at L4. Origin SG scopes to GA prefix pool. WAF at NLB sees client IP via the listener policy if enabled. |
| NLB |
true |
NLB sees real client IP at L4. Origin SG MUST allow client IP ranges. IP-based rate limiting and geo-blocking work at origin. |
| EC2 |
false (recommended default) |
EC2 sees AWS GA IP. SG scopes to GA prefix pool. |
| EC2 |
true |
EC2 sees real client IP. SG MUST allow client IP ranges. Application logs reflect real client IP. |
| Elastic IP |
N/A (EIP is the endpoint) |
EIP receives traffic directly; client IP is preserved by definition. |
GA prefix pool (2026): 51.224.0.0/14 (IPv4). When
PreserveClientIpEnabled is false, origins see source IPs from this
pool. Add this CIDR to security group inbound rules.
Step 6: Flow logs — CloudWatch Logs or S3
Moved verbatim to references/ip-preservation-and-flowlogs-guide.md — load on demand.
Covers: Step 6: Flow logs — CloudWatch Logs or S3. See the "References (load on demand)" section.
Step 7: Cross-account endpoints (2024+) — RAM resource share
Moved verbatim to references/advanced-patterns.md — load on demand.
Covers: Step 7: Cross-account endpoints (2024+) — RAM resource share. See the "References (load on demand)" section.
Step 8: Custom routing accelerator — deterministic port mapping
Moved verbatim to references/advanced-patterns.md — load on demand.
Covers: Step 8: Custom routing accelerator — deterministic port mapping. See the "References (load on demand)" section.
Common patterns
Moved verbatim to references/advanced-patterns.md — load on demand.
Covers: Common patterns. See the "References (load on demand)" section.
Output format
ACCELERATOR_SPEC: <name>
VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING
ARCHITECTURE:
IP source: <Amazon pool | BYOIP 203.0.113.0/24>
IP version: <IPv4 | dual-stack IPv4+IPv6>
Accelerator region: <us-west-2 (control-plane only)>
Listener: <protocol> ports <range> affinity <NONE|SOURCE_IP>
Endpoint groups: <count> regions <list>
Endpoints: <count> type <ALB|NLB|EC2|EIP> weights <list>
Client IP preservation: <ALB: X-Forwarded-For | NLB: enabled | NLB: disabled | EC2: enabled>
Flow logs: <CloudWatch group | S3 bucket | none>
Cross-account: <count> endpoints via RAM share
Custom routing: <yes | no>
CHECKLIST:
[x] Accelerator region valid (control-plane only; traffic is global)
[x] IP source verified (Amazon pool or BYOIP PROVISIONED)
[x] Listener protocol + port range valid
[x] Client affinity NONE for stateless, SOURCE_IP for stateful
[x] Endpoint groups one-per-region
[x] Endpoint types homogeneous within each group
[x] Endpoint ARNs resolve in target region
[x] Traffic dial 0-100 per group; endpoint weight 0-999 per endpoint
[x] Health check protocol matches endpoint type
[x] Client IP preservation matches origin SG posture
[x] Flow log destination permission verified
[x] Cross-account RAM share ACTIVE (if applicable)
[x] Custom routing destination configs valid (if applicable)
FINDINGS:
- [INFO] Estimated monthly cost: $0.025/hr fixed + $0.02/GB ingress forwarding
- [WARN] Traffic dial 0 on us-west-2 — hard cut, no graceful drain
DEPLOY_COMMANDS:
<ordered list of aws globalaccelerator create-* commands>
STRICT output contract
Required output structure
Every response MUST begin with this block — no preamble, no
conversational opening:
ACCELERATOR: <accelerator-name>
VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING
TARGET: <accelerator-name> (accelerator-arn: <arn> for updates)
PRE_CHECKS:
- [PASS] <check description>
- [FAIL] <check description> — <reason>
STEPS:
1. CONFIRM: About to <operation> accelerator <name> in account <account>. This will <consequence>. Estimated monthly cost: <$X>. Proceed? (yes/no)
2. <exact CLI command — no placeholders>
POST_VERIFY:
- [PASS] <verification description>
- [FAIL] <verification description> — <reason>
IP_SOURCE: Amazon pool (2 anycast IPs) | BYOIP <CIDR>
LISTENER: <protocol> <port-range> affinity <NONE|SOURCE_IP>
ENDPOINT_GROUPS: <count> regions <list>
ENDPOINTS: <count> type <ALB|NLB|EC2|EIP> preservation <enabled|disabled|X-Forwarded-For>
FLOW_LOGS: <CloudWatch group | S3 bucket | none>
NOTES: <traffic steering model, failover behavior, cost posture>
FORBIDDEN output patterns
- NEVER start with "Let me analyze…" or "I'll create…" — the VERDICT
block is the FIRST line, always. No conversational preamble.
- NEVER use lowercase verdict values — emit
READY_TO_DEPLOY or
PREREQUISITES_MISSING (not ready, prerequisites).
- NEVER omit PRE_CHECKS — every pre-check run must appear with
[PASS]
or [FAIL] and a specific reason for each failure. An empty
PRE_CHECKS block is non-compliant.
- NEVER emit a plan with placeholder values (e.g.,
<accelerator-arn>,
<account-id>) in a READY_TO_DEPLOY plan — every field must be
populated with actual values from the input.
- NEVER omit the CONFIRM gate as the first STEPS entry for any
state-changing operation.
- NEVER claim success without verifying the accelerator is
DEPLOYED
via describe-accelerator — a partial CLI sequence with missing
listener or endpoint group is non-compliant.
- NEVER silently allow mixed endpoint types in one group — block it
explicitly with a [FAIL] pre-check row naming the validation error.
- NEVER claim BYOIP is ready without verifying
PROVISIONED state in
Route 53 (not PENDING_PROVISIONING, not FAILED_PROVISIONING).
Perfect example output
ACCELERATOR: prod-ga-multi-region
VERDICT: READY_TO_DEPLOY
TARGET: prod-ga-multi-region
PRE_CHECKS:
- [PASS] Accelerator region us-west-2 valid (control-plane only)
- [PASS] Amazon pool IP source (no BYOIP provisioning required)
- [PASS] Listener TCP 443 affinity NONE (stateless HTTPS)
- [PASS] Endpoint group us-east-1 region matches ALB ARN region
- [PASS] Endpoint group eu-west-1 region matches ALB ARN region
- [PASS] Endpoint types homogeneous within each group (ALB only)
- [PASS] ALB arn:aws:elasticloadbalancing:us-east-1:111111111111:loadbalancer/app/prod-use1/abc resolves state=active
- [PASS] ALB arn:aws:elasticloadbalancing:eu-west-1:111111111111:loadbalancer/app/prod-euw1/def resolves state=active
- [PASS] Traffic dial 100 in both regions (active-active)
- [PASS] Health check HTTPS / 30s / threshold 3 matches ALB target group
- [PASS] Flow log S3 bucket policy grants s3:PutObject to flowlogs.globalaccelerator.amazonaws.com
- [PASS] IAM principal holds globalaccelerator:CreateAccelerator, CreateListener, CreateEndpointGroup, AddEndpoints
STEPS:
1. CONFIRM: About to create-accelerator prod-ga-multi-region in account 111111111111. Allocates 2 anycast IPs, TCP/443 listener, 2 endpoint groups (us-east-1 + eu-west-1), 2 ALB endpoints, S3 flow logs. Estimated cost: $18/mo fixed + $0.02/GB ingress. Proceed? (yes/no)
2. aws globalaccelerator create-accelerator --name prod-ga-multi-region --ip-addresses IPV4 --idempotency-token "$(uuidgen)"
3. aws globalaccelerator create-listener --accelerator-arn <arn> --protocol TCP --port-ranges FromPort=443,ToPort=443 --client-affinity NONE --region us-west-2
4. aws globalaccelerator create-endpoint-group --listener-arn <arn> --endpoint-group-region us-east-1 --traffic-dial 100.0 --health-check-interval-seconds 30 --health-check-path / --health-check-port 443 --health-check-protocol HTTPS --threshold-count 3 --region us-west-2
5. aws globalaccelerator add-endpoints --endpoint-group-arn <arn> --endpoint-configurations '[{"EndpointId":"arn:aws:elasticloadbalancing:us-east-1:111111111111:loadbalancer/app/prod-use1/abc","Weight":128}]' --region us-west-2
6. aws globalaccelerator create-endpoint-group --listener-arn <arn> --endpoint-group-region eu-west-1 --traffic-dial 100.0 --health-check-interval-seconds 30 --health-check-path / --health-check-port 443 --health-check-protocol HTTPS --threshold-count 3 --region us-west-2
7. aws globalaccelerator add-endpoints --endpoint-group-arn <arn> --endpoint-configurations '[{"EndpointId":"arn:aws:elasticloadbalancing:eu-west-1:111111111111:loadbalancer/app/prod-euw1/def","Weight":128}]' --region us-west-2
8. aws globalaccelerator update-accelerator-attributes --accelerator-arn <arn> --flow-logs-s3-bucket prod-ga-flowlogs --region us-west-2
POST_VERIFY:
- (pending execution)
- describe-accelerator returns Status=DEPLOYED
- list-endpoint-groups returns 2 groups (us-east-1 + eu-west-1), both traffic-dial=100
- S3 bucket prod-ga-flowlogs receives flow log objects within 5 minutes of test traffic
IP_SOURCE: Amazon pool (2 anycast IPs)
LISTENER: TCP 443-443 affinity NONE
ENDPOINT_GROUPS: 2 regions us-east-1, eu-west-1
ENDPOINTS: 2 type ALB preservation X-Forwarded-For
FLOW_LOGS: S3 bucket prod-ga-flowlogs
NOTES:
- Active-active: each user routes to the closest region. Per-endpoint health check fails over within 30 sec.
- Client IP at origin: ALB reads X-Forwarded-For (not the L4 socket source).
- Cost: ~$18/mo fixed + $0.02/GB. 1 TB/mo ingress ~= $38/month.
- DNS: map app.example.com A+AAAA to the 2 anycast IPs returned by describe-accelerator.
NEVER (top 5)
These are the highest-impact, most-frequent failure modes in Global
Accelerator deployments. Violating any one of these is a correctness
or security regression.
NEVER mix endpoint types within a single endpoint group. The
AddEndpoints API returns ValidationError. Multi-type designs
require separate endpoint groups, each in a different region (by
the model's definition). Pre-check this before emitting any CLI.
NEVER set traffic dial to 0 for graceful drain. Traffic dial 0
is a hard cut — new flows stop immediately, existing flows may be
dropped. For graceful drain, reduce to 5, wait for connections to
close (verify via flow logs), then go to 0. Endpoint weight 0
within a group IS graceful drain.
NEVER advertise a BYOIP CIDR that is not PROVISIONED in
Route 53. GA cannot advertise a CIDR that is not provisioned in
your account. Verify describe-byoip-cidrs returns PROVISIONED
(not PENDING_PROVISIONING, not FAILED_PROVISIONING). The ROA
must also be published with your RIR before provisioning.
NEVER assume PreserveClientIpEnabled is "just a toggle." When
enabled for NLB or EC2, the origin's security group MUST allow
client IP ranges (not just the GA prefix pool). When disabled, the
origin sees AWS GA IPs and IP-based rate limiting / geo-blocking
at the origin silently breaks. State the SG posture in the
PRE_CHECKS row.
NEVER configure flow logs without verifying the destination
permission. GA silently drops logs on permission errors. For
CloudWatch, verify the service-linked role has logs:PutLogEvents.
For S3, verify the bucket policy grants s3:PutObject to
flowlogs.globalaccelerator.amazonaws.com. Send test traffic and
confirm log entries appear within 5 minutes.
Expert heuristic: choosing client IP preservation per endpoint type
Moved verbatim to references/ip-preservation-and-flowlogs-guide.md — load on demand.
Covers: Expert heuristic: choosing client IP preservation per endpoint type. See the "References (load on demand)" section.
Recent AWS features (2024-2026)
Moved verbatim to references/advanced-patterns.md — load on demand.
Covers: Recent AWS features (2024-2026). See the "References (load on demand)" section.
AWS documentation
References (load on demand)
- references/endpoint-and-listener-guide.md — endpoint types, listener protocols, and endpoint-group topology (existing)
- references/ip-preservation-and-flowlogs-guide.md — client IP preservation and flow log destinations (existing); now also the Step 6 flow-log CLI and the client-IP-preservation decision heuristic
- references/advanced-patterns.md — Step 0 expert-knowledge deep dive, cross-account RAM endpoints (Step 7), custom routing accelerators (Step 8), common patterns, and recent AWS features
- references/diagnostic-commands.md — live-account pre-flight check commands (IAM, endpoint ARN/region, BYOIP state, RAM share, flow-log destinations)
1---2name: globalaccelerator-deployer3description: 'Provisions production-grade AWS Global Accelerator deployments with secure defaults: anycast static IP allocation (Amazon pool or BYOIP), TCP/UDP listeners with port ranges and client affinity, regional endpoint groups with traffic dials and health checks, ALB/NLB/EC2/EIP endpoint types, client IP preservation for NLB/EC2 origins, flow logs to CloudWatch or S3, cross-account endpoints via RAM resource share, and custom routing accelerators for deterministic port-to-endpoint mapping. Emits a deployment plan with a READY_TO_DEPLOY checklist. Use when provisioning a new accelerator, planning multi-region active-active traffic steering, configuring client IP preservation for NLB origins, advertising BYOIP ranges, sharing endpoints across AWS accounts, or building a custom routing accelerator for gaming/VoIP workloads.'4license: Apache-2.05compatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline architecture planning. Live deployment uses aws globalaccelerator create-accelerator, create-listener, create-endpoint-group, add-endpoints, update-endpoint-group, advertise-byoip-cidr, aws ram create-resource-share, aws ec2 describe-addresses, and aws logs create-log-group (AWS CLI v2, SSO or key-based credentials).6metadata:7 source: https://skillmd.com/skills/jhkchan/globalaccelerator-deployer8 domain: aws-cloudops9 complexity: high10 requires_llm: 'true'11 phase: '1'12 supports_pipeline: 'true'13 entry_point: 'false'14 family: Networking15 task_type: deploy16 skill_class: capability17 lifecycle_status: active18 verdict_shape: READY_TO_DEPLOY | PREREQUISITES_MISSING19 when_to_use: Provisioning a new Global Accelerator for production, planning multi-region active-active traffic steering, configuring client IP preservation for NLB or EC2 endpoints, advertising BYOIP CIDR blocks, sharing endpoint groups across AWS accounts via RAM, deploying a custom routing accelerator for gaming or VoIP workloads, or configuring flow logs to CloudWatch or S3.20 activation_triggers: create a Global Accelerator, provision an accelerator with static IPs, multi-region active-active accelerator, BYOIP advertise through Global Accelerator, client IP preservation for NLB, cross-account endpoint share, custom routing accelerator, Global Accelerator endpoint group, traffic dial multi-region, Global Accelerator flow logs, dual-stack IPv6 accelerator21 invocation_schema: 'Input shape (one of): (a) a deployment specification including endpoint type (ALB/NLB/EC2/EIP), regions, listener protocol and port range, traffic steering model, BYOIP requirement, client IP preservation requirement, flow log destination, and cross-account requirement; (b) a partial spec for interactive refinement (e.g., "Global Accelerator in front of two regional ALBs with active-active"); (c) an existing accelerator ARN for architecture review against the well-architected checklist. Output shape: { ACCELERATOR_SPEC, VERDICT, ARCHITECTURE, CHECKLIST[], FINDINGS[], DEPLOY_COMMANDS } where VERDICT ∈ { READY_TO_DEPLOY, PREREQUISITES_MISSING }.'22 version: 0.1.023 author: Jacky Chan — AWS Community Builder24 keywords: Global Accelerator, accelerator deploy, anycast IP, static IP, BYOIP, listener, endpoint group, traffic dial, health check, ALB endpoint, NLB endpoint, EC2 endpoint, Elastic IP endpoint, client IP preservation, PreserveClientIpEnabled, flow logs, cross-account endpoints, RAM resource share, custom routing accelerator, dual-stack, IPv6, client affinity, multi-region active-active25 tags: globalaccelerator, networking, deploy, anycast, byoip, endpoint-group, traffic-dial, client-ip-preservation, cross-account, custom-routing26---2728# Global Accelerator Deployer2930## What this skill does3132Provisions production-grade AWS Global Accelerator deployments with secure33defaults: anycast static IP allocation (Amazon pool or BYOIP), TCP/UDP34listeners, regional endpoint groups with traffic dials and health checks,35ALB/NLB/EC2/EIP endpoint types, client IP preservation for NLB and EC236origins, flow logs to CloudWatch or S3, cross-account endpoints via RAM,37and custom routing accelerators. Emits a deployment plan with a38READY_TO_DEPLOY checklist.3940## Mindset4142**One-line takeaway:** Global Accelerator is **not** "an ALB at the edge"43— it is an **anycast network plane** that routes user traffic from the44nearest AWS edge location into the AWS backbone, bypassing internet45congestion for the transit segment. The static IPs are anycast (advertised46from every edge globally); the endpoint selection is regional (per47endpoint-group traffic dial); and the origin's view of "client IP" depends48on endpoint type and PreserveClientIpEnabled.4950Three facts make Global Accelerator provisioning different from "give me51two static IPs":5253- **The two static IPs are anycast — they are NOT region-bound.** The54 same pair of IPs is advertised from every AWS edge location worldwide.55 A user in Tokyo and a user in Frankfurt hit the same IPs but are56 routed to different endpoint groups. The "region" of an accelerator57 only controls where the control-plane metadata lives (and the58 fixed-fee billing region) — it does not affect traffic routing.5960- **Endpoint types within one endpoint group MUST be homogeneous.** A61 group can contain ALB OR NLB OR EC2 OR Elastic IP endpoints — mixing62 types in the same group is rejected by the API. This is an AWS hard63 constraint. Multi-type designs require separate endpoint groups64 (each in a different region, by definition).6566- **Client IP preservation changes the origin's security posture.** For67 ALB endpoints, the client IP always reaches the origin via68 `X-Forwarded-For` (the L4 source IP at the ALB is an internal GA IP).69 For NLB and EC2 endpoints, `PreserveClientIpEnabled: true` causes the70 origin to see the real client IP — security groups and WAF rules at71 the origin MUST allow client IP ranges. Disabling hides clients behind72 AWS IPs and breaks IP-based rate limiting and geo-blocking at origin.7374## Quick navigation7576| Section | What it covers | When to read it |77|---|---|---|78| **Quick reference** | Verdict thresholds + checklist matrix + GA limits | Before any operation |79| **Pre-flight** | Accelerator metadata gate — endpoints, regions, BYOIP, IAM, RAM | Before executing any CLI |80| **Process** | Per-step planning: accelerator, listener, endpoint group, endpoints, IP preservation, flow logs, cross-account, custom routing | When choosing each step |81| **Common patterns** | Multi-region ALB active-active / single-region NLB / custom routing gaming | Boilerplate lookup |82| **STRICT output contract** | Required ACCELERATOR/VERDICT/PRE_CHECKS/STEPS/POST_VERIFY block | Formatting the response |83| **NEVER (top 5)** | Hard rules preventing common insecure patterns | Review before deploy |84| **Expert heuristic** | When client IP preservation is correct per endpoint type | Choosing IP preservation |8586## Quick reference — verdict thresholds8788| Verdict | Trigger condition | Action |89|---|---|---|90| `PREREQUISITES_MISSING` | Any pre-check failed (BYOIP CIDR not provisioned in Route 53 / not in `PROVISIONED` state, mixed endpoint types in one group, endpoint ARN unresolvable, endpoint region != endpoint-group region, accelerator in unsupported region, IAM permission missing, cross-account RAM share not accepted, flow log destination inaccessible, IPv6 requested on accelerator created before dual-stack support without migration) | List failures, do NOT execute |91| `READY_TO_DEPLOY` | All pre-checks passed; awaiting CONFIRM gate | Emit exact CLI sequence with full accelerator config, wait for operator yes |9293**Deployment checklist (every dimension must pass):**9495| Dimension | Requirement | Step |96|---|---|---|97| Static IP source | Amazon pool (default, 2 anycast IPs) or BYOIP (`PROVISIONED` + advertised) | Step 1 |98| IP version | IPv4-only (default) or dual-stack IPv4+IPv6 (accelerator created 2023+) | Step 1 |99| Accelerator region | Any region where GA is available (control-plane only; traffic is global) | Step 1 |100| Listener protocol | `TCP`, `UDP`, or `TCP_UDP` (both) | Step 2 |101| Listener port range | One or more port ranges; each range 1-65535 | Step 2 |102| Client affinity | `NONE` (default, sticky on flow) or `SOURCE_IP` (sticky on source IP / 30s) | Step 2 |103| Endpoint group region | One group per AWS region per listener | Step 3 |104| Traffic dial | 0-100 (percentage). 0 drops all traffic to the group; 100 is full | Step 3 |105| Health check | Interval 10 or 30 sec, threshold 1-10, protocol TCP/HTTP/HTTPS, path (HTTP/HTTPS) | Step 3 |106| Endpoint type | ALB, NLB, EC2 instance, or Elastic IP — homogeneous per group | Step 4 |107| Endpoint weight | 0-999 (relative weight within group). 0 = drained | Step 4 |108| Client IP preservation | ALB: always via X-Forwarded-For. NLB/EC2: `PreserveClientIpEnabled` | Step 5 |109| Flow logs | CloudWatch Logs group OR S3 bucket with GA service principal grant | Step 6 |110| Cross-account endpoints | RAM resource share accepted in target account; endpoint ARN in peer account | Step 7 |111| Custom routing | Deterministic port-to-endpoint mapping (gaming, VoIP, media) | Step 8 |112113**Global Accelerator limits (2026):**114115- Accelerators per account (default): 100 (soft limit).116- Endpoint groups per listener: 1 per region (max ~20 groups, one per region).117- Endpoints per endpoint group: 100 (soft limit).118- Listeners per accelerator: 100.119- Port ranges per listener: 10.120- BYOIP IPv4 CIDR: /24 minimum (Amazon must approve ROA).121- Traffic dial granularity: integer 0-100.122- Endpoint weight granularity: integer 0-999.123- Health check interval: 10 or 30 seconds only.124- Dual-stack: requires accelerator created after Nov 2023 (or migrated).125126## Pre-flight: deployment specification gate (run before architecture output)127128Before producing the deployment plan, validate the input specification.129Several requirements **block deployment** — proceeding with an invalid130spec produces a non-functional or insecure accelerator.131132Moved verbatim to [references/diagnostic-commands.md](references/diagnostic-commands.md) — load on demand.133Covers: Live-account pre-flight checks (IAM, endpoint ARN/region, BYOIP state, RAM share, flow-log destinations). See the "References (load on demand)" section.134135| Attribute | Value | Effect on plan |136|---|---|---|137| Endpoint type | ALB | Client IP via X-Forwarded-For. Health check via ALB target group. |138| Endpoint type | NLB | PreserveClientIpEnabled controls origin visibility of client IP. |139| Endpoint type | EC2 instance | PreserveClientIpEnabled controls origin visibility of client IP. Single-AZ — pair with health check. |140| Endpoint type | Elastic IP | Static origin IP; client IP preserved by definition (EIP is the endpoint). |141| BYOIP | true | CIDR MUST be `PROVISIONED` in Route 53, advertised via GA. |142| Cross-account | true | RAM share `ACTIVE`; endpoint ARN belongs to peer account. |143| Custom routing | true | Listener port range maps deterministically to endpoint ports. |144| Dual-stack | true | Accelerator receives IPv4 and IPv6 anycast IPs. Requires accelerator created 2023+. |145146**If the deployment spec is incomplete** (missing endpoint ARNs, region,147or listener protocol), output:148149```text150ACCELERATOR_SPEC: <name-or-unknown>151VERDICT: PREREQUISITES_MISSING152REASON: Deployment specification is missing required fields (<list>).153Cannot produce an accelerator plan without <field> — the resulting154deployment would be non-functional or insecure.155REQUIRED:156 - endpoint_type (ALB, NLB, EC2, or Elastic IP)157 - region(s) for endpoint groups158 - listener_protocol (TCP, UDP, or TCP_UDP)159 - listener_port_range(s)160 - traffic_steering_model (single-region, multi-region active-active, active-passive)161 - flow_log_destination (CloudWatch or S3, optional but recommended)162```163164## Process — Architecture planning (apply in order, produce deployment plan)165166### Step 0: Expert knowledge — non-obvious Global Accelerator behaviors that change the plan167168Moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md) — load on demand.169Covers: Step 0: Expert knowledge — non-obvious Global Accelerator behaviors that change the plan. See the "References (load on demand)" section.170171### Step 1: Accelerator creation — IP source and IP version172173```bash174aws globalaccelerator create-accelerator \175 --name prod-ga \176 --ip-addresses "IPV4" \177 --idempotency-token "$(uuidgen)"178```179180**BYOIP variant:**181182```bash183# 1. Provision in Route 53 (one-time per CIDR)184aws ec2 provision-byoip-cidr \185 --cidr "203.0.113.0/24" \186 --cidr-authorization-context Message="$(cat signed-message.txt)",MessageSignature="..."187188# 2. Wait for PROVISIONED189aws ec2 describe-byoip-cidrs --max-results 10190191# 3. Create accelerator advertising the BYOIP CIDR192aws globalaccelerator create-accelerator \193 --name prod-ga-byoip \194 --ip-addresses "IPV4" \195 --byoip-cidrs "203.0.113.0/24" \196 --idempotency-token "$(uuidgen)"197```198199| IP source | Use case | Notes |200|---|---|---|201| Amazon pool (default) | New accelerator, no IP reputation constraints | 2 anycast IPs allocated permanently. |202| BYOIP | Existing IP reputation, allowlist-enforced partners, predictable CIDR | Requires /24 minimum, ROA + Route 53 provisioning, `PROVISIONED` state. |203| Dual-stack (Amazon pool) | IPv6-native clients (mobile, IoT) | IPv4 + IPv6 anycast IPs. Requires accelerator created Nov 2023+. |204| BYOIP dual-stack | Existing IPv4 + IPv6 ranges | Both CIDRs must be PROVISIONED. |205206### Step 2: Listener — protocol, port range, client affinity207208```bash209aws globalaccelerator create-listener \210 --accelerator-arn <arn> \211 --protocol "TCP" \212 --port-ranges "FromPort=443,ToPort=443" \213 --client-affinity "NONE" \214 --region us-west-2215```216217| Protocol | When to use |218|---|---|219| `TCP` | HTTPS, HTTP/2, HTTP/3 (TCP), SSH, custom TCP protocols |220| `UDP` | QUIC, VoIP (RTP/UDP), gaming (UDP), DNS-over-UDP |221| `TCP_UDP` | Same port on both protocols (e.g., DNS service on 53) |222223| Client affinity | When to use |224|---|---|225| `NONE` (default) | Stateless endpoints (HTTP, API). GA load-balances per-flow. |226| `SOURCE_IP` | Stateful endpoints (gaming sessions, long-lived streams). Sticky for the source IP. |227228**Anti-pattern:** NEVER set `SOURCE_IP` for stateless HTTP workloads — it229defeats load balancing and pins one user to one endpoint, creating hot230shards when a CDN or NAT sits in front of many users.231232### Step 3: Endpoint group — region, traffic dial, health check233234```bash235aws globalaccelerator create-endpoint-group \236 --listener-arn <arn> \237 --endpoint-group-region "us-east-1" \238 --traffic-dial 100.0 \239 --health-check-interval-seconds 30 \240 --health-check-path "/" \241 --health-check-port 443 \242 --health-check-protocol "HTTPS" \243 --threshold-count 3 \244 --region us-west-2245```246247| Traffic dial | Behavior |248|---|---|249| 100 | Full traffic to this region's endpoints (active-active peer: also 100). |250| 50 | Half-weight relative to peer regions (canary, blue-green). |251| 5 | Minimal traffic (drain candidate — leave at 5 until connections close, then 0). |252| 0 | Hard cut. All new flows go to peer regions. Existing flows may be dropped. |253254| Health check interval | Use case |255|---|---|256| 10 seconds | Real-time / latency-sensitive workloads. Higher GA cost. |257| 30 seconds (default) | General-purpose. Lower cost, slower failover. |258259**Threshold count:** number of consecutive failed health checks before260GA marks the endpoint unhealthy. Default 3. Lower for faster failover261(at the cost of more flapping).262263### Step 4: Endpoints — type, ARN, weight, homogeneity rule264265```bash266aws globalaccelerator add-endpoints \267 --endpoint-group-arn <arn> \268 --endpoint-configurations \269 '[{"EndpointId":"arn:aws:elasticloadbalancing:us-east-1:111111111111:loadbalancer/app/prod-alb/abc","Weight":128,"ClientIPReservationEnabled":false}]' \270 --region us-west-2271```272273| Endpoint type | ARN shape | Notes |274|---|---|---|275| ALB | `arn:aws:elasticloadbalancing:<region>:<acct>:loadbalancer/app/<name>/<id>` | Client IP via X-Forwarded-For. Health check via target group. |276| NLB | `arn:aws:elasticloadbalancing:<region>:<acct>:loadbalancer/net/<name>/<id>` | PreserveClientIpEnabled controls L4 source IP. |277| EC2 | `i-0123456789abcdef0` (instance ID, not ARN) | Single-AZ. PreserveClientIpEnabled controls L4 source IP. |278| Elastic IP | `eipalloc-0123456789abcdef0` (allocation ID) | Static L4 endpoint. Client IP preserved by definition. |279280**Homogeneity rule:** within a single endpoint group, all endpoints MUST281be the same type. Mixing types returns `ValidationError`. Multi-type282designs require separate endpoint groups (in different regions).283284**Weight:** relative within the group. If endpoint A has weight 128 and285endpoint B has weight 64, A gets 2/3 of the group's traffic and B gets2861/3. Weight 0 = graceful drain (no new connections, existing stay).287288### Step 5: Client IP preservation — origin visibility decision289290| Endpoint type | PreserveClientIpEnabled default | Effect |291|---|---|---|292| ALB | N/A (always via X-Forwarded-For) | ALB sees AWS GA IP at L4; reads client IP from X-Forwarded-For. Origin security group can scope to GA prefix pool. |293| NLB | `false` (recommended default) | NLB sees AWS GA IP at L4. Origin SG scopes to GA prefix pool. WAF at NLB sees client IP via the listener policy if enabled. |294| NLB | `true` | NLB sees real client IP at L4. Origin SG MUST allow client IP ranges. IP-based rate limiting and geo-blocking work at origin. |295| EC2 | `false` (recommended default) | EC2 sees AWS GA IP. SG scopes to GA prefix pool. |296| EC2 | `true` | EC2 sees real client IP. SG MUST allow client IP ranges. Application logs reflect real client IP. |297| Elastic IP | N/A (EIP is the endpoint) | EIP receives traffic directly; client IP is preserved by definition. |298299**GA prefix pool (2026):** `51.224.0.0/14` (IPv4). When300PreserveClientIpEnabled is false, origins see source IPs from this301pool. Add this CIDR to security group inbound rules.302303### Step 6: Flow logs — CloudWatch Logs or S3304305Moved verbatim to [references/ip-preservation-and-flowlogs-guide.md](references/ip-preservation-and-flowlogs-guide.md) — load on demand.306Covers: Step 6: Flow logs — CloudWatch Logs or S3. See the "References (load on demand)" section.307308### Step 7: Cross-account endpoints (2024+) — RAM resource share309310Moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md) — load on demand.311Covers: Step 7: Cross-account endpoints (2024+) — RAM resource share. See the "References (load on demand)" section.312313### Step 8: Custom routing accelerator — deterministic port mapping314315Moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md) — load on demand.316Covers: Step 8: Custom routing accelerator — deterministic port mapping. See the "References (load on demand)" section.317318## Common patterns319320Moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md) — load on demand.321Covers: Common patterns. See the "References (load on demand)" section.322323## Output format324325```text326ACCELERATOR_SPEC: <name>327VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING328ARCHITECTURE:329 IP source: <Amazon pool | BYOIP 203.0.113.0/24>330 IP version: <IPv4 | dual-stack IPv4+IPv6>331 Accelerator region: <us-west-2 (control-plane only)>332 Listener: <protocol> ports <range> affinity <NONE|SOURCE_IP>333 Endpoint groups: <count> regions <list>334 Endpoints: <count> type <ALB|NLB|EC2|EIP> weights <list>335 Client IP preservation: <ALB: X-Forwarded-For | NLB: enabled | NLB: disabled | EC2: enabled>336 Flow logs: <CloudWatch group | S3 bucket | none>337 Cross-account: <count> endpoints via RAM share338 Custom routing: <yes | no>339CHECKLIST:340 [x] Accelerator region valid (control-plane only; traffic is global)341 [x] IP source verified (Amazon pool or BYOIP PROVISIONED)342 [x] Listener protocol + port range valid343 [x] Client affinity NONE for stateless, SOURCE_IP for stateful344 [x] Endpoint groups one-per-region345 [x] Endpoint types homogeneous within each group346 [x] Endpoint ARNs resolve in target region347 [x] Traffic dial 0-100 per group; endpoint weight 0-999 per endpoint348 [x] Health check protocol matches endpoint type349 [x] Client IP preservation matches origin SG posture350 [x] Flow log destination permission verified351 [x] Cross-account RAM share ACTIVE (if applicable)352 [x] Custom routing destination configs valid (if applicable)353FINDINGS:354 - [INFO] Estimated monthly cost: $0.025/hr fixed + $0.02/GB ingress forwarding355 - [WARN] Traffic dial 0 on us-west-2 — hard cut, no graceful drain356DEPLOY_COMMANDS:357 <ordered list of aws globalaccelerator create-* commands>358```359360## STRICT output contract361362### Required output structure363364Every response MUST begin with this block — no preamble, no365conversational opening:366367```text368ACCELERATOR: <accelerator-name>369VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING370TARGET: <accelerator-name> (accelerator-arn: <arn> for updates)371PRE_CHECKS:372 - [PASS] <check description>373 - [FAIL] <check description> — <reason>374STEPS:375 1. CONFIRM: About to <operation> accelerator <name> in account <account>. This will <consequence>. Estimated monthly cost: <$X>. Proceed? (yes/no)376 2. <exact CLI command — no placeholders>377POST_VERIFY:378 - [PASS] <verification description>379 - [FAIL] <verification description> — <reason>380IP_SOURCE: Amazon pool (2 anycast IPs) | BYOIP <CIDR>381LISTENER: <protocol> <port-range> affinity <NONE|SOURCE_IP>382ENDPOINT_GROUPS: <count> regions <list>383ENDPOINTS: <count> type <ALB|NLB|EC2|EIP> preservation <enabled|disabled|X-Forwarded-For>384FLOW_LOGS: <CloudWatch group | S3 bucket | none>385NOTES: <traffic steering model, failover behavior, cost posture>386```387388### FORBIDDEN output patterns389390- NEVER start with "Let me analyze…" or "I'll create…" — the VERDICT391 block is the FIRST line, always. No conversational preamble.392- NEVER use lowercase verdict values — emit `READY_TO_DEPLOY` or393 `PREREQUISITES_MISSING` (not `ready`, `prerequisites`).394- NEVER omit PRE_CHECKS — every pre-check run must appear with `[PASS]`395 or `[FAIL]` and a specific reason for each failure. An empty396 PRE_CHECKS block is non-compliant.397- NEVER emit a plan with placeholder values (e.g., `<accelerator-arn>`,398 `<account-id>`) in a READY_TO_DEPLOY plan — every field must be399 populated with actual values from the input.400- NEVER omit the CONFIRM gate as the first STEPS entry for any401 state-changing operation.402- NEVER claim success without verifying the accelerator is `DEPLOYED`403 via `describe-accelerator` — a partial CLI sequence with missing404 listener or endpoint group is non-compliant.405- NEVER silently allow mixed endpoint types in one group — block it406 explicitly with a [FAIL] pre-check row naming the validation error.407- NEVER claim BYOIP is ready without verifying `PROVISIONED` state in408 Route 53 (not `PENDING_PROVISIONING`, not `FAILED_PROVISIONING`).409410### Perfect example output411412```text413ACCELERATOR: prod-ga-multi-region414VERDICT: READY_TO_DEPLOY415TARGET: prod-ga-multi-region416PRE_CHECKS:417 - [PASS] Accelerator region us-west-2 valid (control-plane only)418 - [PASS] Amazon pool IP source (no BYOIP provisioning required)419 - [PASS] Listener TCP 443 affinity NONE (stateless HTTPS)420 - [PASS] Endpoint group us-east-1 region matches ALB ARN region421 - [PASS] Endpoint group eu-west-1 region matches ALB ARN region422 - [PASS] Endpoint types homogeneous within each group (ALB only)423 - [PASS] ALB arn:aws:elasticloadbalancing:us-east-1:111111111111:loadbalancer/app/prod-use1/abc resolves state=active424 - [PASS] ALB arn:aws:elasticloadbalancing:eu-west-1:111111111111:loadbalancer/app/prod-euw1/def resolves state=active425 - [PASS] Traffic dial 100 in both regions (active-active)426 - [PASS] Health check HTTPS / 30s / threshold 3 matches ALB target group427 - [PASS] Flow log S3 bucket policy grants s3:PutObject to flowlogs.globalaccelerator.amazonaws.com428 - [PASS] IAM principal holds globalaccelerator:CreateAccelerator, CreateListener, CreateEndpointGroup, AddEndpoints429STEPS:430 1. CONFIRM: About to create-accelerator prod-ga-multi-region in account 111111111111. Allocates 2 anycast IPs, TCP/443 listener, 2 endpoint groups (us-east-1 + eu-west-1), 2 ALB endpoints, S3 flow logs. Estimated cost: $18/mo fixed + $0.02/GB ingress. Proceed? (yes/no)431 2. aws globalaccelerator create-accelerator --name prod-ga-multi-region --ip-addresses IPV4 --idempotency-token "$(uuidgen)"432 3. aws globalaccelerator create-listener --accelerator-arn <arn> --protocol TCP --port-ranges FromPort=443,ToPort=443 --client-affinity NONE --region us-west-2433 4. aws globalaccelerator create-endpoint-group --listener-arn <arn> --endpoint-group-region us-east-1 --traffic-dial 100.0 --health-check-interval-seconds 30 --health-check-path / --health-check-port 443 --health-check-protocol HTTPS --threshold-count 3 --region us-west-2434 5. aws globalaccelerator add-endpoints --endpoint-group-arn <arn> --endpoint-configurations '[{"EndpointId":"arn:aws:elasticloadbalancing:us-east-1:111111111111:loadbalancer/app/prod-use1/abc","Weight":128}]' --region us-west-2435 6. aws globalaccelerator create-endpoint-group --listener-arn <arn> --endpoint-group-region eu-west-1 --traffic-dial 100.0 --health-check-interval-seconds 30 --health-check-path / --health-check-port 443 --health-check-protocol HTTPS --threshold-count 3 --region us-west-2436 7. aws globalaccelerator add-endpoints --endpoint-group-arn <arn> --endpoint-configurations '[{"EndpointId":"arn:aws:elasticloadbalancing:eu-west-1:111111111111:loadbalancer/app/prod-euw1/def","Weight":128}]' --region us-west-2437 8. aws globalaccelerator update-accelerator-attributes --accelerator-arn <arn> --flow-logs-s3-bucket prod-ga-flowlogs --region us-west-2438POST_VERIFY:439 - (pending execution)440 - describe-accelerator returns Status=DEPLOYED441 - list-endpoint-groups returns 2 groups (us-east-1 + eu-west-1), both traffic-dial=100442 - S3 bucket prod-ga-flowlogs receives flow log objects within 5 minutes of test traffic443IP_SOURCE: Amazon pool (2 anycast IPs)444LISTENER: TCP 443-443 affinity NONE445ENDPOINT_GROUPS: 2 regions us-east-1, eu-west-1446ENDPOINTS: 2 type ALB preservation X-Forwarded-For447FLOW_LOGS: S3 bucket prod-ga-flowlogs448NOTES:449 - Active-active: each user routes to the closest region. Per-endpoint health check fails over within 30 sec.450 - Client IP at origin: ALB reads X-Forwarded-For (not the L4 socket source).451 - Cost: ~$18/mo fixed + $0.02/GB. 1 TB/mo ingress ~= $38/month.452 - DNS: map app.example.com A+AAAA to the 2 anycast IPs returned by describe-accelerator.453```454455## NEVER (top 5)456457These are the highest-impact, most-frequent failure modes in Global458Accelerator deployments. Violating any one of these is a correctness459or security regression.4604611. **NEVER mix endpoint types within a single endpoint group.** The462 `AddEndpoints` API returns `ValidationError`. Multi-type designs463 require separate endpoint groups, each in a different region (by464 the model's definition). Pre-check this before emitting any CLI.4654662. **NEVER set traffic dial to 0 for graceful drain.** Traffic dial 0467 is a hard cut — new flows stop immediately, existing flows may be468 dropped. For graceful drain, reduce to 5, wait for connections to469 close (verify via flow logs), then go to 0. Endpoint weight 0470 within a group IS graceful drain.4714723. **NEVER advertise a BYOIP CIDR that is not `PROVISIONED` in473 Route 53.** GA cannot advertise a CIDR that is not provisioned in474 your account. Verify `describe-byoip-cidrs` returns `PROVISIONED`475 (not `PENDING_PROVISIONING`, not `FAILED_PROVISIONING`). The ROA476 must also be published with your RIR before provisioning.4774784. **NEVER assume PreserveClientIpEnabled is "just a toggle."** When479 enabled for NLB or EC2, the origin's security group MUST allow480 client IP ranges (not just the GA prefix pool). When disabled, the481 origin sees AWS GA IPs and IP-based rate limiting / geo-blocking482 at the origin silently breaks. State the SG posture in the483 PRE_CHECKS row.4844855. **NEVER configure flow logs without verifying the destination486 permission.** GA silently drops logs on permission errors. For487 CloudWatch, verify the service-linked role has `logs:PutLogEvents`.488 For S3, verify the bucket policy grants `s3:PutObject` to489 `flowlogs.globalaccelerator.amazonaws.com`. Send test traffic and490 confirm log entries appear within 5 minutes.491492## Expert heuristic: choosing client IP preservation per endpoint type493494Moved verbatim to [references/ip-preservation-and-flowlogs-guide.md](references/ip-preservation-and-flowlogs-guide.md) — load on demand.495Covers: Expert heuristic: choosing client IP preservation per endpoint type. See the "References (load on demand)" section.496497## Recent AWS features (2024-2026)498499Moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md) — load on demand.500Covers: Recent AWS features (2024-2026). See the "References (load on demand)" section.501502## AWS documentation503504- **AWS Global Accelerator Developer Guide** — https://docs.aws.amazon.com/global-accelerator/latest/dg/what-is-global-accelerator.html505- **Global Accelerator endpoints** — https://docs.aws.amazon.com/global-accelerator/latest/dg/about-endpoints.html506- **Client IP preservation** — https://docs.aws.amazon.com/global-accelerator/latest/dg/preserve-client-ip-address.html507- **BYOIP in Global Accelerator** — https://docs.aws.amazon.com/global-accelerator/latest/dg/using-byoip-in-global-accelerator.html508- **Custom routing accelerators** — https://docs.aws.amazon.com/global-accelerator/latest/dg/about-custom-routing-accelerators.html509- **Cross-account endpoints** — https://docs.aws.amazon.com/global-accelerator/latest/dg/cross-account-resources.html510- **Flow logs** — https://docs.aws.amazon.com/global-accelerator/latest/dg/monitoring-global-accelerator.flow-logs.html511- **Global Accelerator API Reference** — https://docs.aws.amazon.com/global-accelerator/latest/api/Welcome.html512- **AWS RAM Developer Guide** — https://docs.aws.amazon.com/ram/latest/userguide/what-is.html513514## References (load on demand)515516- [references/endpoint-and-listener-guide.md](references/endpoint-and-listener-guide.md) — endpoint types, listener protocols, and endpoint-group topology (existing)517- [references/ip-preservation-and-flowlogs-guide.md](references/ip-preservation-and-flowlogs-guide.md) — client IP preservation and flow log destinations (existing); now also the Step 6 flow-log CLI and the client-IP-preservation decision heuristic518- [references/advanced-patterns.md](references/advanced-patterns.md) — Step 0 expert-knowledge deep dive, cross-account RAM endpoints (Step 7), custom routing accelerators (Step 8), common patterns, and recent AWS features519- [references/diagnostic-commands.md](references/diagnostic-commands.md) — live-account pre-flight check commands (IAM, endpoint ARN/region, BYOIP state, RAM share, flow-log destinations)