Update kubeconfig for EKS aws
Add/refresh an EKS context with a clean alias instead of the long ARN
aws eks update-kubeconfig --name <cluster> --region <id> --alias <cluster> --kubeconfig ~/.kube/config
more aws
all 14 commands →
ECR docker login
aws ecr get-login-password --region <id> | docker login --username AWS --password-stdin <id>.dkr.ecr.<id>.amazonaws.com
SSM shell without SSH
aws ssm start-session --target i-<id> --region <id>
Tail Lambda/CloudWatch logs
aws logs tail /aws/lambda/<name> --follow --since 10m --format short
Simulate IAM policy decision
aws iam simulate-principal-policy --policy-source-arn <id> --action-names s3:GetObject --resource-arns <id> --query 'EvaluationResults[].{action:EvalActionName,decision:EvalDecision}' --output table
Read a secret value
aws secretsmanager get-secret-value --secret-id <name> --query SecretString --output text | jq -r '.password'