Command Palette

Search for a command to run...

Назад к скиллам
скилл № 70403

aws-investigation

Following a failure into an AWS account with the AWS connector's call tool — finding the resource from what the cluster knows, where each symptom's cause…

БесплатноБез исполняемых скриптов
clm-cloud-solutionsот clm-cloud-solutions★ 20 звёзд на GitHub

Установить aws-investigation в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

The workload's own error names the AWS piece: read it first. Before any AWS call, read the failing workload's logs and events, and the caller's as well as the callee's when a request crosses workloads. An AccessDenied names the action and often the role; a KMS error names the key; a timeout names the host and port; an ALB 502 or 503 says the request never reached a healthy target. A cause you reach without that line is a guess.

Find the resource from what the cluster already knows; never list the account. Every call costs time and a share of a small rate limit, and a list of the whole account answers nothing:

  • A pod's AWS identity: with EKS Pod Identity, eks ListPodIdentityAssociations with clusterName, namespace and serviceAccount, then DescribePodIdentityAssociation for its roleArn; with IRSA, the ServiceAccount's eks.amazonaws.com/role-arn annotation.
  • A node: spec.providerID is aws:///<zone>/<instance-id> (get_external_connections lists them in clusterNetwork); ec2 DescribeInstances with those ids gives the VPC, subnets, security groups and instance profile.
  • A load balancer: the Ingress or Service status hostname (<name>-<id>.<region>.elb.amazonaws.com); elbv2 DescribeLoadBalancers with Names, then DescribeTargetGroups with its LoadBalancerArn and DescribeTargetHealth for each group.
  • A database: its endpoint (<id>.<hash>.<region>.rds.amazonaws.com); rds DescribeDBInstances with that DBInstanceIdentifier gives its security groups, status and parameter group.
  • A name in a private domain (db.shop.internal, a corporate suffix): it is usually a Route 53 private hosted zone record. route53 ListHostedZonesByName with DNSName, then ListResourceRecordSets with HostedZoneId and StartRecordName: the record points (CNAME or alias) at the real endpoint, and the record itself may be what changed.

Where the cause usually lives, by symptom:

  • A timeout to a database or cache: the dependency's security group must allow the nodes' (or pods') security group on its port. Read the dependency's group, then the nodes' outbound rules, then the subnet's network ACL and route table. Connection refused or an authentication error is not the network.
  • An ALB 502, 503 or 504, or users timing out, while the pods are Ready: DescribeTargetHealth gives each target's state and reason. Unhealthy targets with healthy pods point at the path from the load balancer to them: the node or pod security group must allow the load balancer's group on the target port, the network ACLs of the targets' subnets must allow it too (they are stateless: the target port in, the ephemeral ports back out), and the target group's health check path and port must answer. Healthy targets while clients fail point at the load balancer's own security group inbound or its listener: the health checks come from the load balancer, so a rule removed for clients leaves them green.
  • AccessDenied in a pod's AWS calls: from the pod's role, iam ListAttachedRolePolicies, ListRolePolicies, GetRolePolicy, or GetPolicy and GetPolicyVersion; iam SimulatePrincipalPolicy with the exact action and resource ARN settles it. A resource policy can deny too: s3 GetBucketPolicy, kms GetKeyPolicy (PolicyName default), ecr GetRepositoryPolicy.
  • A KMS error (KMS.DisabledException, KMSInvalidStateException, AccessDenied on Decrypt): the key changed. kms DescribeKey with the key id or ARN from the error, or the bucket's key from s3 GetBucketEncryption (KMSMasterKeyID), gives its KeyState (Enabled, Disabled, PendingDeletion) and DeletionDate; ListGrants and GetKeyPolicy say who may use it. Then CloudTrail: DisableKey, ScheduleKeyDeletion, PutKeyPolicy, RetireGrant or RevokeGrant.
  • An image pull failure from ECR: the node's instance profile role (pull permission) and ecr GetRepositoryPolicy; ecr DescribeImages with repositoryName says whether the tag exists, when it was pushed and last pulled. A tag or digest that is gone (manifest unknown, not found): ecr GetLifecyclePolicy for a rule that expires it, and cloudtrail LookupEvents with EventSource ecr.amazonaws.com for who deleted or retagged it (lifecycle expirations log as PolicyExecutionEvent). ecr DescribeImageScanFindings gives an image's vulnerabilities.
  • Database authentication failing after a credential change: secretsmanager DescribeSecret gives LastRotatedDate, LastChangedDate and the version stages; ListSecretVersionIds says when each version was created and which one holds AWSCURRENT and AWSPREVIOUS. Never the value. Pods keep the credential they loaded until they reload it. In the cluster, a Secret synced from Secrets Manager (External Secrets labels it reconcile.external-secrets.io/managed) shows its last write in get_resource_yaml: written after the pods started, the cluster already holds the new credential, and restarting the pods that read it at start is the fix, not a change in AWS.
  • Messages piling up in a queue
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл aws-investigation?

Following a failure into an AWS account with the AWS connector's call tool — finding the resource from what the cluster knows, where each symptom's cause usually lives, and reading CloudTrail. Load it before your first AWS call.

Как установить скилл aws-investigation?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл aws-investigation запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить aws-investigation с