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★ 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 ListPodIdentityAssociationswith clusterName, namespace and serviceAccount, thenDescribePodIdentityAssociationfor its roleArn; with IRSA, the ServiceAccount'seks.amazonaws.com/role-arnannotation. - A node:
spec.providerIDisaws:///<zone>/<instance-id>(get_external_connections lists them in clusterNetwork);ec2 DescribeInstanceswith 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 DescribeLoadBalancerswith Names, thenDescribeTargetGroupswith its LoadBalancerArn andDescribeTargetHealthfor each group. - A database: its endpoint (
<id>.<hash>.<region>.rds.amazonaws.com);rds DescribeDBInstanceswith 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 ListHostedZonesByNamewith DNSName, thenListResourceRecordSetswith 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:
DescribeTargetHealthgives 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, orGetPolicyandGetPolicyVersion;iam SimulatePrincipalPolicywith the exact action and resource ARN settles it. A resource policy can deny too:s3 GetBucketPolicy,kms GetKeyPolicy(PolicyNamedefault),ecr GetRepositoryPolicy. - A KMS error (
KMS.DisabledException,KMSInvalidStateException, AccessDenied on Decrypt): the key changed.kms DescribeKeywith the key id or ARN from the error, or the bucket's key froms3 GetBucketEncryption(KMSMasterKeyID), gives its KeyState (Enabled, Disabled, PendingDeletion) and DeletionDate;ListGrantsandGetKeyPolicysay 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 DescribeImageswithrepositoryNamesays whether the tag exists, when it was pushed and last pulled. A tag or digest that is gone (manifest unknown,not found):ecr GetLifecyclePolicyfor a rule that expires it, andcloudtrail LookupEventswithEventSourceecr.amazonaws.comfor who deleted or retagged it (lifecycle expirations log asPolicyExecutionEvent).ecr DescribeImageScanFindingsgives an image's vulnerabilities. - Database authentication failing after a credential change:
secretsmanager DescribeSecretgives LastRotatedDate, LastChangedDate and the version stages;ListSecretVersionIdssays 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 itreconcile.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
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…