
Configuring Vpc Endpoints For Private Aws Service Access
- 2.8k installs
- 2.2k repo stars
- Updated August 4, 2026
- aws/agent-toolkit-for-aws
How to create and configure VPC endpoints (gateway and interface) for private AWS service access using AWS PrivateLink.
About
This skill teaches configuring AWS VPC endpoints (interface and gateway types) to enable private connectivity to AWS services like S3, DynamoDB, EC2, and Secrets Manager via AWS PrivateLink. Developers use it when building secure, air-gapped infrastructure that avoids internet gateways, NAT devices, and public IPs. Key workflows include creating endpoint resources, configuring security groups and route tables, enabling DNS resolution, and troubleshooting common issues like DNS failures, connection timeouts, and overly restrictive endpoint policies.
- Covers both gateway endpoints (S3, DynamoDB) and interface endpoints (EC2, SSM, Secrets Manager, etc.)
- Configures security group rules, route tables, and DNS hostname settings for endpoint access
- Eliminates need for internet gateways, NAT devices, or public IP addresses
- Includes troubleshooting procedures for DNS resolution, connection timeouts, and policy restrictions
- Uses AWS PrivateLink technology for private, secure service connectivity
Configuring Vpc Endpoints For Private Aws Service Access by the numbers
- 2,838 all-time installs (skills.sh)
- +390 installs in the week ending Aug 4, 2026 (Skillselion tracking)
- Ranked #61 of 1,435 DevOps & CI/CD skills by installs in the Skillselion catalog
- Security screen: LOW risk (skills.sh audit)
- Data as of Aug 5, 2026 (Skillselion catalog sync)
configuring-vpc-endpoints-for-private-aws-service-access capabilities & compatibility
- Capabilities
- gateway endpoint creation (s3, dynamodb) · interface endpoint creation (ec2, ssm, secrets m · security group rule configuration · route table management · dns hostname and resolution configuration · endpoint policy management · troubleshooting connectivity issues
- Works with
- aws
- Use cases
- security audit · devops
- Platforms
- macOS · Windows · Linux
- Runs
- Remote server
- Pricing
- Bring your own API key
What configuring-vpc-endpoints-for-private-aws-service-access says it does
Configures VPC endpoints (interface and gateway) for private AWS service access using AWS PrivateLink.
Covers endpoint creation, security groups, route tables, and DNS configuration.
Check security group rules, subnet configurations, and service availability in the region.
npx skills add https://github.com/aws/agent-toolkit-for-aws --skill configuring-vpc-endpoints-for-private-aws-service-accessAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 2.8k |
|---|---|
| repo stars | ★ 2.2k |
| Security audit | 3 / 3 scanners passed |
| Last updated | August 4, 2026 |
| Repository | aws/agent-toolkit-for-aws ↗ |
What it does
Configure VPC endpoints for private AWS service access without internet exposure.
Who is it for?
DevOps engineers, infrastructure architects, and platform teams building secure, isolated AWS environments with zero-trust networking.
Skip if: Applications requiring public internet access; non-AWS cloud environments.
When should I use this skill?
Designing secure private connectivity to AWS services; hardening infrastructure before production launch; implementing air-gapped or isolated networks.
What you get
VPC endpoints enable private, secure access to AWS services (S3, DynamoDB, EC2, SSM, Secrets Manager, etc.) with no internet exposure.
- Configured VPC endpoints (gateway and/or interface)
- Security groups with correct ingress/egress rules
- Updated route tables for gateway endpoints
By the numbers
- Supports gateway endpoints for S3 and DynamoDB
- Supports interface endpoints for EC2, SSM, Secrets Manager, and other AWS services
- Requires HTTPS port 443 for secure traffic
Files
Configuring VPC Endpoints for Private AWS Service Access
Overview
Domain expertise for configuring VPC endpoints to enable private access to AWS services without routing traffic through the internet. Covers both gateway endpoints (S3, DynamoDB) and interface endpoints (EC2, SSM, Secrets Manager, etc.) powered by AWS PrivateLink.
Configure VPC endpoints
To create and configure VPC endpoints for private AWS service access, follow the procedure exactly. See VPC endpoints configuration procedure.
Troubleshooting
Endpoint not available
Check security group rules, subnet configurations, and service availability in the region.
DNS resolution issues
Verify DNS hostnames and DNS resolution are enabled on the VPC and that the DHCP options set has correct domain name servers.
Connection timeouts
Verify security group rules allow HTTPS traffic (port 443) and route tables are properly configured for gateway endpoints.
Policy restrictions
Review endpoint policies — default policies allow all access, but custom policies may be restrictive.
Configure VPC Endpoints for Private AWS Service Access
Overview
This SOP configures VPC endpoints to enable private access to AWS services without routing traffic through the internet. VPC endpoints provide secure, private connectivity to supported AWS services and VPC endpoint services powered by AWS PrivateLink.
Parameters
- vpc_id (required): The ID of the VPC where endpoints will be created
- subnet_ids (required): Comma-separated list of subnet IDs for interface endpoints
- service_names (required): Comma-separated list of AWS service names to create endpoints for (e.g., s3, ec2, ssm, secretsmanager)
- route_table_ids (optional): Comma-separated list of route table IDs for gateway endpoints
- security_group_ids (optional): Comma-separated list of security group IDs for interface endpoints
- policy_document (optional): Custom endpoint policy JSON document
- enable_dns_hostnames (optional, default: "true"): Enable DNS hostnames for interface endpoints
- enable_dns_support (optional, default: "true"): Enable DNS support for interface endpoints
Steps
1. Verify Dependencies
Check for required tools and inform the user about capabilities needed.
Constraints:
- You MUST verify that the
call_awstool is available in your context - You MUST inform the user that this SOP requires AWS CLI access and will make AWS API calls
- You MUST inform the user about any missing tools with a clear message
- You MUST ask if the user wants to proceed anyway despite missing tools
- You MUST respect the user's decision to proceed or abort
- You MUST inform the user that passwords will be managed through AWS Secrets Manager and MUST NEVER prompt for password input
2. Gather Required Parameters
Collect all required parameters from the user in a single prompt.
Constraints:
- You MUST ask for all required parameters upfront in a single prompt rather than one at a time
- You MUST support multiple input methods for parameter provision
- You MUST validate that vpc_id follows the format vpc-xxxxxxxx
- You MUST validate that subnet_ids follow the format subnet-xxxxxxxx
- You MUST confirm successful acquisition of all parameters before proceeding
3. Validate VPC and Subnets
Verify that the specified VPC and subnets exist and are properly configured.
Constraints:
- You MUST call AWS CLI to describe the VPC and verify it exists
- You MUST call AWS CLI to describe subnets and verify they exist in the specified VPC
- You MUST inform the user about each validation step being performed and why
- You MUST check that DNS hostnames and DNS resolution are enabled on the VPC for interface endpoints
- You SHOULD warn the user if DNS settings are not optimal for VPC endpoints
4. Check Existing VPC Endpoints
Check for existing VPC endpoints to avoid duplicates.
Constraints:
- You MUST call AWS CLI to list existing VPC endpoints in the VPC
- You MUST inform the user about existing endpoints for the requested services
- You MUST ask the user whether to skip, replace, or modify existing endpoints
- You MUST respect the user's decision on handling existing endpoints
5. Create Security Groups for Interface Endpoints
Create or validate security groups for interface endpoints if not provided.
Constraints:
- You MUST create a security group for interface endpoints if security_group_ids is not provided
- You MUST configure inbound rules to allow HTTPS traffic (port 443) from VPC CIDR
- You MUST call AWS CLI to create security group and rules
- You MUST inform the user about security group creation and configuration
- You MUST use AWS Secrets Manager for any authentication requirements and MUST NEVER prompt for passwords
6. Determine Endpoint Types
Categorize services into gateway and interface endpoint types.
Constraints:
- You MUST identify which services support gateway endpoints (S3, DynamoDB)
- You MUST identify which services require interface endpoints (EC2, SSM, Secrets Manager, etc.)
- You MUST inform the user about the endpoint types that will be created
- You MUST explain the difference between gateway and interface endpoints
7. Create Gateway Endpoints
Create VPC gateway endpoints for supported services.
Constraints:
- You MUST create gateway endpoints for S3 and DynamoDB if requested
- You MUST associate gateway endpoints with route tables
- You MUST use provided route_table_ids or discover route tables automatically
- You MUST call AWS CLI to create each gateway endpoint
- You MUST inform the user about each endpoint creation step
- You MUST apply custom policy if policy_document is provided
8. Create Interface Endpoints
Create VPC interface endpoints for supported services.
Constraints:
- You MUST create interface endpoints for services that don't support gateway endpoints
- You MUST associate interface endpoints with specified subnets
- You MUST attach security groups to interface endpoints
- You MUST enable DNS hostnames and support based on parameters
- You MUST call AWS CLI to create each interface endpoint
- You MUST inform the user about each endpoint creation step and its purpose
9. Configure Endpoint Policies
Apply custom endpoint policies if provided.
Constraints:
- You MUST apply custom policy_document to endpoints if provided
- You MUST validate JSON policy syntax before applying
- You MUST call AWS CLI to modify endpoint policy
- You MUST inform the user about policy application
- You SHOULD provide examples of common endpoint policies if no custom policy is provided
10. Verify Endpoint Status
Check that all endpoints are created successfully and are available.
Constraints:
- You MUST call AWS CLI to describe all created endpoints
- You MUST verify that endpoints are in "Available" state
- You MUST inform the user about endpoint status and any issues
- You MUST wait for endpoints to become available before proceeding
- You SHOULD provide estimated time for endpoint availability
11. Test Connectivity
Provide instructions for testing VPC endpoint connectivity.
Constraints:
- You MUST provide AWS CLI commands to test connectivity to each service
- You MUST explain how to verify that traffic is using the VPC endpoint
- You MUST provide examples of testing from EC2 instances within the VPC
- You MUST inform the user about DNS resolution testing for interface endpoints
12. Provide Integration Examples
Provide code examples and testing instructions for the configured VPC endpoints.
Constraints:
- You MUST provide AWS CLI examples for testing each endpoint type
- You MUST provide Python boto3 code examples for connecting through endpoints
- You MUST provide Java AWS SDK examples for endpoint usage
- You MUST provide JavaScript/Node.js AWS SDK examples
- You MUST explain how applications can leverage the private endpoints
- You MUST include examples of endpoint-specific DNS names for interface endpoints
Examples
Example AWS CLI Commands
# List VPC endpoints
aws ec2 describe-vpc-endpoints --vpc-endpoint-ids vpce-12345678
# Test S3 connectivity through gateway endpoint
aws s3 ls --region us-east-1
# Test EC2 connectivity through interface endpoint
aws ec2 describe-instances --region us-east-1
# Test DNS resolution for interface endpoint
nslookup ec2.us-east-1.amazonaws.comExample Integration Code
Python Example
import boto3
# Configure client to use VPC endpoint
ec2_client = boto3.client('ec2',
region_name='us-east-1',
endpoint_url='https://vpce-12345678-abcdefgh.ec2.us-east-1.vpce.amazonaws.com')
# List instances using private endpoint
response = ec2_client.describe_instances()Java Example
// Configure client with VPC endpoint
EC2Client ec2Client = EC2Client.builder()
.region(Region.US_EAST_1)
.endpointOverride(URI.create("https://vpce-12345678-abcdefgh.ec2.us-east-1.vpce.amazonaws.com"))
.build();
// Use client normally
DescribeInstancesResponse response = ec2Client.describeInstances();JavaScript/Node.js Example
const AWS = require('aws-sdk');
// Configure service with VPC endpoint
const ec2 = new AWS.EC2({
region: 'us-east-1',
endpoint: 'https://vpce-12345678-abcdefgh.ec2.us-east-1.vpce.amazonaws.com'
});
// Use service normally
ec2.describeInstances({}, (err, data) => {
if (err) console.log(err);
else console.log(data);
});Troubleshooting
Endpoint Not Available
If VPC endpoints show "Failed" or "Rejected" state, check security group rules, subnet configurations, and service availability in the region.
DNS Resolution Issues
If interface endpoint DNS names don't resolve, verify that DNS hostnames and DNS resolution are enabled on the VPC and that the VPC has a DHCP options set with the correct domain name servers.
Connection Timeouts
If connections to services timeout, verify security group rules allow HTTPS traffic (port 443) and that route tables are properly configured for gateway endpoints.
Policy Restrictions
If access is denied, review endpoint policies and ensure they allow the required actions for your use case. Default policies allow all access, but custom policies may be restrictive.
Related skills
How it compares
Pick this AWS agent-toolkit SOP over generic VPC networking docs when agents need a parameterized, step-by-step procedure for PrivateLink endpoints to specific AWS services.
FAQ
What is the difference between gateway and interface endpoints?
Gateway endpoints support S3 and DynamoDB via route table entries; interface endpoints (AWS PrivateLink) support EC2, SSM, Secrets Manager, and others via elastic network interfaces and security groups.
Do VPC endpoints require an internet gateway or NAT device?
No. VPC endpoints enable private connectivity without internet gateways, NAT devices, or public IP addresses.
How do I diagnose VPC endpoint connectivity issues?
Check security group rules (HTTPS port 443 allowed), DNS hostnames/resolution enabled on VPC, DHCP options set correct, and endpoint policies are not overly restrictive.
Is Configuring Vpc Endpoints For Private Aws Service Access safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.