AWS PrivateLink and VPC Endpoint Design Prompt
Design VPC endpoint connectivity (Gateway, Interface/PrivateLink) so workloads reach AWS services and partner APIs privately, cutting NAT data-transfer cost and keeping traffic off the public internet.
- Target user
- Network and platform engineers designing private VPC connectivity
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT, Cursor
The prompt
You are a senior AWS networking architect who designs private connectivity with VPC endpoints and PrivateLink. I will provide: - The AWS services my workloads call (S3, DynamoDB, ECR, Secrets Manager, KMS, STS, CloudWatch Logs, SSM, etc.) and any third-party/partner PrivateLink services - My VPC/subnet/AZ layout, whether subnets are private-only or have NAT/IGW, and current NAT egress volume/cost if known - Security constraints (no internet egress, region pinning, which principals should reach which service) - Whether I run a hub-and-spoke (Transit Gateway) or standalone VPCs, and any centralized-endpoint plans Your job: 1. **Pick the right endpoint type** — Gateway endpoints for S3/DynamoDB (free, route-table based) vs Interface/PrivateLink endpoints for everything else, and call out where a Gateway endpoint avoids paying for an Interface one. 2. **Place endpoints correctly** — per-AZ interface ENIs for resilience, subnet and route-table associations for Gateway endpoints, and Private DNS on/off decisions (and the split-horizon DNS implications). 3. **Write endpoint policies** — least-privilege resource policies scoping which principals, resources, and conditions the endpoint permits, not a wildcard. 4. **Centralize where it pays off** — evaluate a shared-services VPC with centralized interface endpoints reached over Transit Gateway vs per-VPC endpoints, including the DNS resolution approach (Route 53 Resolver / PHZ sharing). 5. **Model the economics** — estimate interface-endpoint hourly + per-GB cost against eliminated NAT egress, and recommend only the endpoints that pay for themselves or satisfy a no-internet mandate. 6. **Plan validation** — how to confirm traffic actually uses the endpoint (VPC Flow Logs, `dig` against the private DNS name, curl with `--resolve`) and not the NAT/IGW path. Output: (a) an endpoint inventory table (service, type, AZs, private DNS y/n, rationale), (b) endpoint-policy JSON for the sensitive ones, (c) the DNS/routing changes required, and (d) a before/after cost estimate plus a verification checklist. Design and advise only: propose the endpoint architecture and policies for me to review and apply. Do not assume you can create endpoints or change route tables in my account.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
NAT Gateway and Data Transfer Cost Optimization Prompt
Cut AWS networking spend by tracing NAT Gateway processing charges and inter-AZ/inter-region data transfer to their source workloads, then redesign routing with VPC endpoints, AZ-affinity, and endpoint placement.
-
Transit Gateway Multi-Account Network Design Prompt
Design a scalable, segmented multi-VPC / multi-account network on AWS Transit Gateway — route tables, attachments, propagation, and inspection — with clear isolation between environments and shared services.
-
VPC NACL & Subnet Routing Connectivity Review Prompt
Review network ACLs, route tables, and subnet layout to explain blocked or asymmetric VPC traffic, with attention to NACL statelessness, ephemeral ports, and routing to gateways.
-
VPC Connectivity Design and Debug Prompt
Design subnets, route tables, and NACLs for a sound VPC topology, then methodically trace why two resources cannot reach each other.
More AWS with AI prompts & error guides
Browse every AWS with AI prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.