AWS [OLD]
general notes
- Link to AWS portal
- upper right - change location to upper west
- message from josh— you should all have the access required to run
eksctl
now. Please create an access key and setup the aws cli, then install eksctl and verify that you can see thenats-k8s-cluster
cluster.
aws cli & eksctl
- aws cli installation: https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
- curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
- sudo installer -pkg AWSCLIV2.pkg -target /
- eksctl installation: https://docs.aws.amazon.com/eks/latest/userguide/eksctl.html
Get access key for AWS
- top right → “Security Credentials”
- Download the key under Access keys for CLI, SDK, & API access
- Configure local AWS access key:
aws configure
Assume Role guide
cat aws/assume-eks-admin-role.txt
and copy/paste the command in the terminalaws sts get-caller-identity
- This should return “arn” = “…:assumed-role/eks-admin”
aws eks update-kubeconfig --region us-west-2 --name **data-pipeline-small**
- This is used for updating kubeconfig locally
- find the cluster name in aws console > eks panel
kubectl get nodes
etc. → to check