neptune-db-cluster-deployer
Provisions Amazon Neptune DB clusters (graph database) with production defaults: cluster creation (instance type, cluster size, reader replicas), VPC networking (DB subnet group across >=3 AZs, security groups on port 8182), encryption (KMS at creation — immutable), auto-failover (Multi-AZ with reader promotion), parameter groups (neptune_enforce_ssl, neptune_query_timeout), IAM database auth, loading data (bulk load from S3 via the Neptune Loader), querying (Gremlin, SPARQL, openCypher), Neptune Streams, snapshot/restore, and the Neptune Analytics boundary. Emits a READY_TO_DEPLOY checklist. Use when creating a Neptune DB cluster, sizing writer/reader instances, designing a Multi-AZ graph topology, hardening TLS/IAM, loading graph data from S3, or choosing between Neptune DB and Neptune Analytics. Triggers: create Neptune, provision graph database, Neptune cluster, Gremlin, SPARQL, openCypher, Neptune bulk load, Neptune Streams, neptune_enforce_ssl, Neptune Multi-AZ.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-24
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- neptune-db-cluster-deployer
- license
- Apache-2.0
- metadata
- { "tags": "aws, neptune, graph-database, cloudops, deploy, databases, provisioning, gremlin, sparql, opencypher, multi-az, encryption, iam-db-auth, neptune-streams", "phase": "1", "author": "Jacky Chan — AWS Community Builder", "domain": "aws-cloudops", "family": "Databases", "version": "0.1.0", "keywords": "aws, neptune, graph database, cloudops, deploy, provisioning, gremlin, sparql, opencypher, multi-az, failover, encryption at rest, tls, iam database auth, subnet group, parameter group, neptune_enforce_ssl, neptune_query_timeout, bulk load, neptune loader, neptune streams, reader instance", "task_type": "deploy", "complexity": "high", "entry_point": "false", "skill_class": "capability", "when_to_use": "Invoke when the user wants to create a new Amazon Neptune DB cluster (graph database), size writer and reader instances, design a Multi-AZ topology with reader promotion, harden TLS via neptune_enforce_ssl, enable IAM database auth, load graph data from S3 via the Neptune Loader, query via Gremlin / SPARQL / openCypher, enable Neptune Streams for change capture, or generate provisioning CLI commands / IaC templates. Do NOT invoke for Neptune Analytics (analytics graph service, separate API), for self-managed Neo4j / JanusGraph on EC2, or for auditing an existing Neptune cluster's posture.", "dependencies": "aws-orchestrator", "requires_llm": "true", "verdict_shape": "READY_TO_DEPLOY | PREREQUISITES_MISSING", "lifecycle_status": "active", "supports_pipeline": "true" }
- description
- Provisions Amazon Neptune DB clusters (graph database) with production defaults: cluster creation (instance type, cluster size, reader replicas), VPC networking (DB subnet group across >=3 AZs, security groups on port 8182), encryption (KMS at creation — immutable), auto-failover (Multi-AZ with reader promotion), parameter groups (neptune_enforce_ssl, neptune_query_timeout), IAM database auth, loading data (bulk load from S3 via the Neptune Loader), querying (Gremlin, SPARQL, openCypher), Neptune Streams, snapshot/restore, and the Neptune Analytics boundary. Emits a READY_TO_DEPLOY checklist. Use when creating a Neptune DB cluster, sizing writer/reader instances, designing a Multi-AZ graph topology, hardening TLS/IAM, loading graph data from S3, or choosing between Neptune DB and Neptune Analytics. Triggers: create Neptune, provision graph database, Neptune cluster, Gremlin, SPARQL, openCypher, Neptune bulk load, Neptune Streams, neptune_enforce_ssl, Neptune Multi-AZ.
- compatibility
- Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). For live deployment: AWS CLI v2 with neptune, ec2, kms, iam, and s3 access. Works with Terraform aws_neptune_cluster / aws_neptune_cluster_instance resources and CloudFormation AWS::Neptune::DBCluster / AWS::Neptune::DBInstance templates.
02 资源文件 19
- 参考文档eval/test-cases.yaml6.2 KB
- 参考文档evals/baselines/analytics-redirect-boundary.md932 B
- 参考文档evals/baselines/dev-single-instance.md580 B
- 参考文档evals/baselines/gremlin-bulk-load-from-s3.md976 B
- 参考文档evals/baselines/missing-subnet-group-and-cmk.md781 B
- 参考文档evals/baselines/production-multiaz-gremlin.md950 B
- 参考文档evals/eval_config.yaml1.8 KB
- 参考文档evals/evals.json11.5 KB
- 参考文档evals/prompts/analytics-redirect-boundary.md516 B
- 参考文档evals/prompts/dev-single-instance.md681 B
- 参考文档evals/prompts/gremlin-bulk-load-from-s3.md820 B
- 参考文档evals/prompts/missing-subnet-group-and-cmk.md460 B
- 参考文档evals/prompts/production-multiaz-gremlin.md963 B
- 参考文档examples/README.md8.7 KB
- 参考文档references/advanced-patterns.md6.0 KB
- 参考文档references/error-handling.md1.3 KB
- 参考文档references/instance-and-topology.md10.5 KB
- 参考文档references/provisioning-cli-commands.md14.6 KB
- 参考文档skill.usf.yaml4.3 KB
03 SKILL.md 正文
Neptune DB Cluster Deployer
An AWS CloudOps agent skill that provisions Amazon Neptune DB clusters (graph database) with correct defaults. The skill walks the operator through a provisioning procedure, captures the operator's instance, topology, security, and query-language decisions, explains why each default matters, and emits a READY_TO_DEPLOY checklist with copy-pasteable verification commands.
Activation keywords
create Neptune, provision Neptune, Neptune cluster, graph database, Gremlin, SPARQL, openCypher, Neptune Multi-AZ, Neptune reader instance, Neptune bulk load, Neptune Loader, Neptune Streams, Neptune parameter group, neptune_enforce_ssl, neptune_query_timeout, IAM database auth, Neptune subnet group, Neptune KMS encryption, db.r6g.large, db.r6g.8xlarge, db.x2gdb.16xlarge.
STRICT output contract
When this skill is invoked with a Neptune-provisioning request
(cluster name, instance class, workload shape, region, 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 NEPTUNE:, 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 — Neptune DB vs Neptune Analytics | Boundary call (avoid the common misroute) |
| Step 2 — Instance class + cluster size | Sizing writer + readers |
| Step 3 — Multi-AZ with reader promotion | Production topology |
| Step 4 — Network + security (VPC, subnet group, SG) | VPC wiring |
| Step 5 — Encryption (KMS at creation, immutable) | TLS + at-rest |
| Step 6 — Parameter groups | neptune_enforce_ssl, neptune_query_timeout |
| Step 7 — IAM database auth | Token-based access |
| Step 8 — Bulk load from S3 | Initial data ingest |
| Step 9 — Query languages (Gremlin, SPARQL, openCypher) | API surface |
| Step 10 — Streams / snapshots / recent features | Change capture, recovery |
| NEVER do these things | Review before signing off |
| Output format | The literal checklist template |
| references/instance-and-topology.md | Writer/reader math, instance classes |
| references/provisioning-cli-commands.md | Copy-pasteable CLI sequence |
Mindset
One-line takeaway: Neptune correctness is decided at creation
time. Encryption at rest (KMS) and the cluster's VPC/subnet placement
are immutable post-creation — modifying them requires a snapshot
restore into a new cluster. The procedure treats each one-way door as
an explicit decision before the create-db-cluster call.
The three provisioning-time misconceptions (DB vs Analytics, encryption-at-creation, single-instance production) moved to references/advanced-patterns.md. Load on demand; the one-line takeaway above is the operative rule.
Configuration dependency graph (novel heuristic)
Full dependency graph table and cross-dependency gotchas moved to references/advanced-patterns.md. Load on demand to sequence provisioning and debug immutable/one-way-door settings.
Expert heuristic: graph sizing (memory budget)
Graph sizing heuristic (60% buffer-cache budget, 3x index rule, worked example) moved to references/instance-and-topology.md. Sizing rules in Step 2 summarize the operative constraints.
Expert heuristic: failover promotion semantics
Failover promotion semantics (cluster endpoint stability, ~30s promotion, zero committed-transaction loss, AZ spread) moved to references/instance-and-topology.md. Load on demand for SLA analysis; Step 3 keeps the requirements.
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 Neptune access | Can't provision without it | aws sts get-caller-identity |
| Region selected | Neptune clusters and subnet groups are region-scoped | aws configure get region |
| VPC ID + at least 2 subnets in different AZs (3+ preferred) | Neptune is VPC-only; Multi-AZ requires multi-AZ subnet group | aws ec2 describe-subnets --filters "Name=vpc-id,Values=<vpc>" — confirm >=2 distinct AvailabilityZone values |
| Cluster name unique in this region | Names are region-unique | aws neptune describe-db-clusters --db-cluster-identifier <name> returns DBClusterNotFound |
| KMS key ARN (if encryption with customer CMK) | Custom encryption requires a CMK in the same region | aws kms describe-key --key-id <cmk-id> — confirm Enabled=true |
| Security group with port 8182 inbound from application SG | Wrong port = silent connectivity failure; Neptune listens on 8182 | aws ec2 describe-security-groups --group-ids <sg> — verify inbound rule on 8182 |
| Workload description (graph size, query depth, write rate) | Drives instance class, replica count, parameter group decisions | Captured in the prompt or follow-up question |
| S3 bucket + IAM role for bulk load (if loading data) | Loader needs IAM role with s3:GetObject and Neptune trust policy; bucket in same region |
aws iam get-role --role-name <role>; bucket in same region |
| Engine choice (DB vs Analytics) | Neptune Analytics is a separate service; this skill is DB only | If the user asks for graph algorithms / large-scale analytics, redirect to Neptune Analytics |
If any prerequisite is missing, output VERDICT: PREREQUISITES_MISSING
and cite the specific gap.
Step 1 — Neptune DB vs Neptune Analytics (boundary call)
The single highest-impact Neptune decision is which SERVICE to use. This skill only provisions Neptune DB. If the user wants Neptune Analytics, stop and redirect.
Decision tree:
What is the workload shape?
├── Transactional (OLTP) — point lookups, short traversals,
│ real-time app queries, frequent writes
│ └── Neptune DB (this skill)
├── Analytical (OLAP) — PageRank / connected-components /
│ community-detection on a large static graph, batch
│ └── Neptune Analytics (NOT this skill — separate API:
│ aws graph create-graph, no writer/reader split)
└── Both └── Neptune DB for transactions + export to Neptune
Analytics for batch algorithm runs
Feature comparison:
| Feature | Neptune DB | Neptune Analytics |
|---|---|---|
| API family | aws neptune create-db-cluster |
aws graph create-graph (different CLI namespace) |
| Topology | writer + reader replicas (Multi-AZ) | single graph (no writer/reader split) |
| Failover | YES (writer promotion) | N/A (recreate on failure) |
| Gremlin transactions | YES | NO (read-only analytic queries) |
| SPARQL | YES | NO |
| openCypher | YES | YES |
| Graph algorithms (built-in) | NO (write your own Gremlin) | YES (PageRank, BFS, etc.) |
| Storage | cluster-shared (6-way) | ephemeral snapshot-loaded |
| Pricing | instance-hour + storage + IO | GB-hour (memory) + snapshot |
Common mistake: provisioning Neptune DB for a PageRank workload. Neptune DB has no built-in algorithm library; running PageRank in Gremlin on a large graph will time out and exhaust memory. Use Neptune Analytics.
Step 2 — Instance class + cluster size
Neptune offers db.r5, db.r6g, db.r6i, db.x2g families.
Memory-bound graphs favor r6g/x2g. Avoid t3/t4g burstable for
production (Neptune is not supported on burstable in some regions).
Cluster size by workload:
- Dev / test: 1 writer instance,
db.r6g.large. No failover. - Small production (read-heavy, < 100 GB working set): 1 writer +
1 reader (Multi-AZ),
db.r6g.2xlarge. - Mid production (100-500 GB, mixed read/write): 1 writer + 2
readers across 3 AZs,
db.r6g.8xlarge. - Large production (500 GB+, deep traversals): 1 writer + 3+
readers,
db.r6g.16xlargeordb.x2gdb.16xlarge.
Sizing rules:
- Plan for 60% of instance memory as the buffer cache budget (see Expert heuristic above). The graph working set (vertices + edges + 3x indexes) MUST fit in the buffer cache for sub-second traversals.
- Readers scale reads, not writes. There is exactly one writer per Neptune cluster.
- Cluster storage auto-scales; do NOT size for storage, size for memory.
Step 3 — Multi-AZ with reader promotion
Multi-AZ is the primary resilience control for Neptune DB.
Requirements:
- At least 1 reader instance in a DIFFERENT AZ than the writer.
- DB subnet group spanning at least 2 AZs (3+ preferred for spreading readers).
- Deletion protection enabled on the cluster.
Behavior on writer failure:
- Neptune detects writer loss (health check).
- A reader in a different AZ is promoted to writer (~30 seconds).
- The cluster endpoint repoints to the new writer automatically.
- Clients reconnect via the cluster endpoint — no code change.
- Data loss window: zero committed transactions (cluster-shared storage).
Common mistake: subnet group with only one AZ. Multi-AZ cannot
place the reader in a different AZ, and the cluster silently degrades
to writer-only (no failover). Verify the subnet group spans >=2 AZs
before create-db-cluster.
Step 4 — Network + security (VPC, subnet group, security group)
Neptune is VPC-only — there is no public IP option. All clusters live inside a VPC and are reachable only from inside the VPC (or via a bastion / VPN / PrivateLink).
Subnet-group and security-group CLI blocks moved to references/provisioning-cli-commands.md. NEVER open port 8182 to 0.0.0.0/0 — rule retained below.
NEVER open port 8182 to 0.0.0.0/0 — even with TLS and IAM auth,
this exposes the cluster to internet scanning. Always scope inbound to
the application's SG.
Step 5 — Encryption (KMS at creation, immutable)
Neptune encryption at rest is immutable: set at creation via
--storage-encrypted. Adding it later requires a snapshot → restore
into a new encrypted cluster.
--storage-encryptedenables encryption (AWS-managed KMS key by default).--kms-key-id <cmk-arn>uses a customer-managed CMK (required for most compliance regimes — HIPAA, PCI, SOC2).- TLS in transit is controlled by the parameter group via
neptune_enforce_ssl=1(see Step 6). Pair at-rest + in-transit encryption for defense in depth.
Common mistake: planning to "enable encryption later." A non-encrypted Neptune cluster CANNOT be encrypted without a full snapshot/restore cycle. Decide at creation.
Step 6 — Parameter groups (neptune_enforce_ssl, neptune_query_timeout)
Parameter groups control Neptune runtime behavior. Most parameters require an instance reboot to take effect — set them at cluster creation in the DB cluster parameter group.
| Parameter | Default | Recommended | Why |
|---|---|---|---|
neptune_enforce_ssl |
0 (off) |
1 (on) for all production |
Forces TLS-only connections; plaintext rejected. Defense against network sniffing. |
neptune_query_timeout |
120000 (ms) |
30000 (30s) for OLTP; 120000+ for analytics |
Caps runaway traversals. Long-running queries consume CPU/memory and starve other queries. |
neptune_streams |
0 (off) |
1 (on) if change capture needed |
Enables Neptune Streams for CDC (see Step 10). |
neptune_lab_mode |
varies | Leave at default unless AWS support advises | Labs features may change; do not enable in production without testing. |
Parameter-group creation/modify CLI moved to references/provisioning-cli-commands.md. Parameter table above stays authoritative.
Common mistake: enabling neptune_enforce_ssl=1 on an existing
production cluster without a maintenance window. The rolling reboot
drops plaintext clients. Enable at creation.
Step 7 — IAM database auth
Neptune supports IAM database auth — token-based access using AWS SigV4
instead of static passwords. Recommended for production; pairs with
neptune_enforce_ssl=1.
IAM enable flag and the neptune-db:Connect policy JSON moved to references/provisioning-cli-commands.md. Gotchas below remain in-file.
Common gotchas:
- IAM auth and password auth can coexist. To enforce IAM-only, do NOT set a password and rely on IAM tokens.
- IAM tokens are SigV4-derived — short-lived (~15 minutes). The Gremlin/SPARQL driver must refresh tokens automatically (most modern drivers do; verify your client lib).
- IAM auth requires TLS — pair with
neptune_enforce_ssl=1.
Step 8 — Bulk load from S3 (Neptune Loader)
For initial data ingest, use the Neptune Loader (NOT a script that
issues individual Gremlin g.addV calls — that is 10-100x slower).
Prerequisites:
- S3 bucket in the SAME region as the Neptune cluster.
- IAM role with trust policy allowing Neptune and permissions
s3:GetObjecton the bucket. - Data in a supported format: Gremlin CSV/JSON/n-quad, or SPARQL N-Triples/RDF.
Neptune Loader curl payload moved to references/provisioning-cli-commands.md. Prerequisites and common mistakes below remain in-file.
Common mistakes:
- Cross-region S3 bucket — the Loader fails silently or with a generic permissions error. Always same-region.
- Concurrent loads on the same cluster conflict. Run one load at a time per cluster.
mode=AUTOoverwrites existing vertices;mode=NEWerrors on duplicates;mode=RESUMEcontinues an interrupted load.
Step 9 — Query languages (Gremlin, SPARQL, openCypher)
Neptune supports three query languages on the SAME cluster (no need to pick at creation). Endpoints:
| Language | Endpoint path | Use when |
|---|---|---|
| Gremlin | :8182/gremlin |
Apache TinkerPop-compatible; property graph; deep traversals |
| SPARQL | :8182/sparql |
RDF / semantic web; triple-store; SPARQL queries |
| openCypher | :8182/opencypher |
Cypher (Neo4j-compatible) syntax; property graph; declarative patterns |
Common mistake: loading property-graph data then trying SPARQL. Gremlin and openCypher operate on the property graph; SPARQL operates on RDF triples. They are different data models. Pick the model at load time.
Step 10 — Streams / snapshots / recent features
Neptune Streams (CDC):
- Enable via
neptune_streams=1in the parameter group + reboot. - Exposes an HTTP endpoint (
:8182/streams) returning change records (vertex/edge insertions, updates, deletions). - Pair with a consumer (Kinesis Data Streams + Lambda, or a custom poller) for downstream replication / audit.
- Stream records are retained for ~24 hours.
Snapshots (automated + manual):
- Automated: set
--backup-retention-period 7(days) at creation. - Manual:
aws neptune create-db-cluster-snapshotbefore upgrades. - Restore creates a NEW cluster (the snapshot is cluster-scoped).
Recent AWS features (2023-2026) moved to references/advanced-patterns.md. Streams and snapshot guidance above remain in-file.
NEVER do these things
-
NEVER plan to "enable encryption at rest later." Neptune encryption is immutable post-creation. Adding it requires a snapshot → restore into a new encrypted cluster. Decide at creation.
-
NEVER provision Neptune DB for a graph-algorithm (PageRank, connected components) workload. Neptune DB has no built-in algorithm library. Use Neptune Analytics (separate service). A baseline model conflates the two.
-
NEVER enable
neptune_enforce_ssl=1on an existing production cluster without a maintenance window. The rolling reboot drops plaintext clients. Enable at creation. -
NEVER open port 8182 to
0.0.0.0/0. Even with TLS and IAM auth, internet exposure invites scanning. Always scope inbound to the application's SG. -
NEVER use a single-AZ subnet group for Multi-AZ Neptune. Multi-AZ requires the promoted reader in a different AZ than the writer. Verify
aws ec2 describe-subnetsshows >=2 distinct AZs in the subnet group beforecreate-db-cluster. -
NEVER run a Neptune DB cluster with only a writer instance in production. There is no failover target. The minimum production topology is 1 writer + 1 reader in a different AZ.
-
NEVER load data via individual Gremlin
g.addV()calls for bulk ingest. Use the Neptune Loader (10-100x faster). Per-vertex inserts are for incremental app writes only. -
NEVER use a cross-region S3 bucket for the Neptune Loader. It fails silently or with a generic permissions error. Always same-region.
-
NEVER load property-graph data then expect SPARQL to work. Gremlin/openCypher operate on the property graph; SPARQL operates on RDF triples. Different data models. Pick at load time.
-
NEVER size Neptune by spec-sheet memory. Plan for 60% buffer cache budget; the graph working set (vertices + edges + 3x indexes) MUST fit in 60% of nominal or traversals slow 10-100x.
-
NEVER disable deletion protection on a production cluster outside of a planned teardown. Accidental
delete-db-clusterdestroys the cluster + storage irrecoverably. -
NEVER use the engine version "latest" in production. Pin the major version explicitly; auto-upgrades during maintenance windows can introduce breaking behavior.
Output format
NEPTUNE: <cluster-name>
VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING
CHECKLIST:
[✓|✗] Service: Neptune DB (NOT Analytics)
[✓|✗] Engine version: 1.3.x.x (pinned)
[✓|✗] Writer instance: db.<family>.<size>
[✓|✗] Reader instances: <N> (across <AZ-count> AZs for Multi-AZ)
[✓|✗] Multi-AZ with reader promotion: Enabled | Disabled (writer-only — NO failover)
[✓|✗] Subnet group: <name> (spans <N> AZs)
[✓|✗] Security group: <sg-id> (inbound port 8182 from <app-sg>)
[✓|✗] Encryption at rest: Enabled (customer CMK <key-arn> | AWS-managed) | Disabled
[✓|✗] TLS / neptune_enforce_ssl: Enabled | Disabled
[✓|✗] IAM database auth: Enabled | Disabled
[✓|✗] Parameter group: <name> (neptune_query_timeout=<ms>, neptune_streams=<0|1>)
[✓|✗] Snapshot retention: <N> days | Disabled
[✓|✗] Deletion protection: Enabled | Disabled
[✓|✗] Bulk load source: s3://<bucket>/<prefix> (same region, IAM role <role-arn>) | N/A
[✓|✗] Query languages: Gremlin | SPARQL | openCypher
VERIFICATION_COMMANDS:
aws neptune describe-db-clusters --db-cluster-identifier <name>
aws neptune describe-db-instances --db-instance-identifier <name>-instance-1
aws neptune describe-db-cluster-parameters --db-cluster-parameter-group-name <pg>
aws ec2 describe-subnets --subnet-ids <subnet-ids>
aws kms describe-key --key-id <cmk-id>
Worked example — production Neptune DB with Multi-AZ
NEPTUNE: prod-graph
VERDICT: READY_TO_DEPLOY
CHECKLIST:
[✓] Service: Neptune DB (NOT Analytics)
[✓] Engine version: 1.3.2.0 (pinned)
[✓] Writer instance: db.r6g.8xlarge
[✓] Reader instances: 2 (across us-east-1b, us-east-1c for Multi-AZ)
[✓] Multi-AZ with reader promotion: Enabled
[✓] Subnet group: prod-neptune-subnet (3 AZs)
[✓] Security group: sg-neptune123 (inbound 8182 from sg-app456)
[✓] Encryption at rest: Enabled (customer CMK alias/prod-graph-kms)
[✓] TLS / neptune_enforce_ssl: Enabled
[✓] IAM database auth: Enabled
[✓] Parameter group: prod-neptune-pg (neptune_query_timeout=30000, neptune_streams=1)
[✓] Snapshot retention: 7 days
[✓] Deletion protection: Enabled
[✓] Bulk load source: s3://prod-graph-bucket/initial-load/ (same region, IAM role NeptuneLoadRole)
[✓] Query languages: Gremlin, openCypher
VERIFICATION_COMMANDS:
aws neptune describe-db-clusters --db-cluster-identifier prod-graph
aws neptune describe-db-instances --db-instance-identifier prod-graph-instance-1
aws neptune describe-db-cluster-parameters --db-cluster-parameter-group-name prod-neptune-pg
aws ec2 describe-subnets --subnet-ids subnet-0aaa subnet-0bbb subnet-0ccc
aws kms describe-key --key-id alias/prod-graph-kms
Decision tree: Neptune DB vs Neptune Analytics
Is the workload transactional (OLTP) — point lookups, short
traversals, real-time app queries, frequent writes?
├── YES → Neptune DB (this skill)
│ writer + readers, Multi-AZ, Gremlin/SPARQL/openCypher
└── NO → Is the workload analytical (OLAP) — PageRank,
connected-components, community-detection on a large
static graph?
├── YES → Neptune Analytics (NOT this skill — aws graph)
│ single graph, built-in algorithms, GB-hour pricing
└── NO → Neptune DB for transactions + scheduled export to
Neptune Analytics for batch algorithm runs
Error handling
API error deep dives (DBClusterAlreadyExists, DBSubnetGroup AZ span, IAM AccessDenied, Loader assume-role) moved to references/error-handling.md. Load on demand when a provisioning call fails.
References (load on demand)
- references/error-handling.md — provisioning API error deep dives and fixes.
- references/advanced-patterns.md — misconceptions, configuration dependency graph, recent AWS features.
- references/instance-and-topology.md — sizing heuristic and failover promotion semantics.
- references/provisioning-cli-commands.md — full copy-pasteable CLI sequence (subnet group, SG, parameter group, IAM, loader).
Domain
AWS CloudOps / Amazon Neptune DB Provisioning & Graph Topology Design.
AWS documentation
- Amazon Neptune User Guide — https://docs.aws.amazon.com/neptune/latest/userguide/intro.html
- Neptune instance classes — https://docs.aws.amazon.com/neptune/latest/userguide/instance-types.html
- Neptune encryption at rest — https://docs.aws.amazon.com/neptune/latest/userguide/encrypt.html
- Neptune TLS / neptune_enforce_ssl — https://docs.aws.amazon.com/neptune/latest/userguide/security-ssl.html
- Neptune IAM database auth — https://docs.aws.amazon.com/neptune/latest/userguide/iam-auth.html
- Neptune Loader — https://docs.aws.amazon.com/neptune/latest/userguide/load-data.html
- Neptune Streams — https://docs.aws.amazon.com/neptune/latest/userguide/streams.html
- Neptune Analytics (separate service) — https://docs.aws.amazon.com/neptune-analytics/latest/dg/what-is-neptune-analytics.html
- Gremlin / SPARQL / openCypher in Neptune — https://docs.aws.amazon.com/neptune/latest/userguide/graph-engines.html
04 同仓库更多 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.
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.
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.
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.
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.
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.