EKS Guide
bctl has first-class support for Amazon EKS. It handles the full checkout + kubeconfig update in a single command.
Prerequisites
awsCLI installed and in PATHkubectlinstalled and in PATH- Profile has
eks_clustersconfigured (see below)
Run bctl doctor to verify both are available.
Configure EKS clusters
Add eks_clusters to a profile in ~/.config/bctl/config.yaml:
profiles:
dev:
profile_id: "..."
env_id: "..."
aws_profile: dev
region: us-east-1
eks_clusters:
- my-dev-cluster
- my-dev-cluster-2 # multiple clusters supported
Connect
This does three things in sequence:
- Checks out the Britive profile (temporary AWS credentials)
- Writes credentials to
~/.aws/credentials - Runs
aws eks update-kubeconfigfor each cluster ineks_clusters
Then kubectl is immediately ready:
Checkout with EKS flag
Alternatively, use the --eks flag on checkout to do the same thing:
The difference: bctl eks connect is dedicated to EKS workflows and always writes awscreds. bctl checkout --eks lets you combine EKS with other output formats.
Multi-cluster
If a profile has multiple clusters, bctl updates kubeconfig for each in sequence:
✓ Checked out dev
✓ kubeconfig updated for cluster dev-cluster-1
✓ kubeconfig updated for cluster dev-cluster-2
If one cluster fails (e.g. wrong region), bctl logs the error and continues to the next.
Region
The region used for aws eks update-kubeconfig is resolved in this order:
regionin the credentials response from Britiveregionin the profile configdefault_regionin the top-level config