Обновить kubeconfig для EKS aws
Добавить/обновить контекст EKS с коротким алиасом вместо длинного ARN
aws eks update-kubeconfig --name <cluster> --region <id> --alias <cluster> --kubeconfig ~/.kube/config
more aws
all 14 commands →
Логин docker в ECR
aws ecr get-login-password --region <id> | docker login --username AWS --password-stdin <id>.dkr.ecr.<id>.amazonaws.com
SSM-сессия без SSH
aws ssm start-session --target i-<id> --region <id>
Хвост логов Lambda/CloudWatch
aws logs tail /aws/lambda/<name> --follow --since 10m --format short
Симулировать решение IAM
aws iam simulate-principal-policy --policy-source-arn <id> --action-names s3:GetObject --resource-arns <id> --query 'EvaluationResults[].{action:EvalActionName,decision:EvalDecision}' --output table
Прочитать значение секрета
aws secretsmanager get-secret-value --secret-id <name> --query SecretString --output text | jq -r '.password'