This guide provides an automated approach to creating AWS VPC endpoints for Fiddler Cloud integration. For manual configuration steps, see the AWS Virtual PrivateLink Setup guide.Documentation Index
Fetch the complete documentation index at: https://handbook.fiddler.ai/llms.txt
Use this file to discover all available pages before exploring further.
This script automates the VPC endpoint creation process described in the manual setup guide. Ensure you have completed initial coordination with the Fiddler team before running this script.
Overview
The VPC endpoint creation script automates the following tasks:- Creates and configures security groups with HTTPS access
- Establishes VPC endpoints in specified subnets
- Configures private DNS for seamless Fiddler Cloud access
- Validates configuration and handles cross-region endpoints
Prerequisites
Before running the script, ensure you have:- AWS CLI installed and configured with appropriate credentials
- jq tool installed for JSON parsing
- yq tool installed for YAML parsing
- AWS IAM permissions to create:
- VPC endpoints
- Security groups
- Route53 DNS records
- Required information from the Fiddler team:
- VPC endpoint service name
- Stack name identifier
- Your AWS environment details:
- VPC ID
- Subnet IDs
- AWS region
Installation
Step 1: Install Required Tools
The following tools are required:- AWS CLI
- jq for JSON parsing
- yq for YAML parsing
- macOS
- Ubuntu/Debian
- CentOS/RHEL
Step 2: Configure AWS CLI
If not already configured, set up your AWS credentials:Step 3: Download and Prepare the Script
- Request the script and configuration file template from your Fiddler representative
- Make the script executable:
Configuration
Step 1: Gather Required Information
Collect the following information before configuration: From the Fiddler team:- Service name: The VPC endpoint service name for your Fiddler environment
- Stack name: The unique identifier for your endpoint
- VPC ID: The ID of your VPC (e.g.,
vpc-12345678) - Subnet IDs: IDs of subnets where the endpoint will be created
- Region: The AWS region where your VPC is located
Step 2: Update Configuration File
Edit theconfig.yaml file with your specific values:
Running the Script
Basic Usage
Run the script with the default configuration fileconfig.yaml:
Using a Custom Configuration File Name
Specify an alternative configuration file:Script Execution Process
The script performs the following operations:- Validates configuration - Ensures all required fields are present
- Creates security group - Establishes HTTPS access rules if not specified
- Creates VPC endpoint - Establishes the endpoint in your VPC
- Configures DNS - Sets up private DNS for easy access (if enabled)
The script is idempotent and safe to run multiple times. It will not create duplicate resources.
Example Output
Advanced Configuration
Using Existing Security Groups
To use pre-existing security groups instead of creating new ones:Disabling DNS Setup
If you prefer to manage DNS separately:Cross-Region Endpoints
The script automatically handles cross-region endpoints when the service is in a different region than your VPC:Troubleshooting
Common Issues and Solutions
AWS CLI not configured
Missing required tools
Install jq and yq as described in the Installation section.VPC or subnet not found
- Verify the VPC ID and subnet IDs in your configuration
- Ensure you have access to the specified resources
- Confirm the resources exist in the specified region
Permission denied errors
Ensure your AWS credentials have the following permissions:ec2:CreateVpcEndpointec2:CreateSecurityGroupec2:AuthorizeSecurityGroupIngressec2:CreateTagsec2:DescribeVpcsec2:DescribeSubnetsroute53:CreateHostedZoneroute53:ChangeResourceRecordSets
Getting Help
For script usage information:Security Considerations
- The script creates security groups allowing HTTPS (port 443) access from your VPC CIDR range
- All DNS zones are created as private hosted zones
- Resources are tagged for easy identification and management
- VPC endpoints use AWS PrivateLink for secure, private communication
Verification
After running the script:- Verify the endpoint status in the AWS VPC console shows “Available”
- Check that security group rules are correctly configured
-
Test DNS resolution within your VPC:
-
Access the Fiddler UI at
https://<your-subdomain>.cloud.fiddler.ai
Next Steps
- Review the AWS Virtual PrivateLink Setup guide for additional context
- Configure your applications to use the private endpoint
- Set up monitoring for the VPC endpoint connection
- Contact Fiddler support if you encounter any issues