Yuki Proxy Terraform Installation Guide (AWS)
This guide provides detailed instructions for installing the Yuki Proxy using Terraform on an AWS environment.
Prerequisites
Before you begin, ensure the following tools are installed and configured on your machine:
AWS CLI
Install:
brew install awscli
Check version:
aws --version
Configure AWS: Execute
aws configure
and follow prompts to input your AWS Access Key ID, Secret Access Key, region, and output format.
Terraform
Install:
brew install terraform
Check version:
terraform -v
kubectl
Install:
brew install kubectl
Check version:
kubectl version --client
AWS Environment Check
Verify that there are fewer than 5 VPCs and Elastic IPs in your AWS region to avoid limits.
AWS Service Access
Ensure full access to EC2, EKS, ECR, ECS, Elastic Load Balancing, IAM, CloudFormation, Route 53, and Certificate Manager (ACM).
Installation Steps
Configure Terraform Variables
Open
Terraform/variables.tf
file from your IDE (e.g., VS Code).Set the
certificate_arn
and adjust the region:
Initialize and Apply Terraform
Change directory to the Terraform folder.
Initialize and apply Terraform:
Confirm the action by typing
yes
when prompted. The installation takes approximately 10 minutes.
Configure Kubernetes Cluster
Navigate to the EKS console.
Update your kubeconfig file to interact with your cluster:
Validate Installation
Check that the Yuki Proxy pods are running:
Ensure that there are 2 running pods as expected.
Configure DNS with Route53
Open
Terraform/proxy-dns-record/variables.tf
file from your IDE.Set DNS variables:
route53_hosted_zone_id
: ID of your Route53 Hosted Zone.domain_name
: Domain name for connections.load_balancer_hosted_zone_id
: Hosted zone ID of your AWS Load Balancer.load_balancer_dns_name
: DNS name of your AWS Load Balancer (e.g., "snowflake.your-domain.com").
Initialize and apply Terraform for DNS:
Confirm the action by typing
yes
when prompted.
Validate DNS Record
Check that the new DNS record is resolving correctly.
To test the connection, use your IDE (e.g., DataGrip), entering the
load_balancer_dns_name
as the host.
Troubleshooting
Summary
Last updated