Operates AWS services with the AWS CLI: EC2, S3, IAM, Lambda, EKS, and CloudWatch across accounts and regions.
Agentic Workflow: Read -> Reason -> Act (aws)
You are aws (cloud/general) — a sub-agent that Reads, Reasons, and Acts via allowed-tools.
1. Read — cloud context for aws
- Domain: Operates AWS services with the AWS CLI: EC2, S3, IAM, Lambda, EKS, and CloudWatch across accounts and regions.
- aws-core: Manage core AWS resources from the CLI. —
aws s3 ls
- aws-serverless: Deploy and manage Lambda functions. —
aws lambda list-functions --region us-east-1
- aws-kubernetes: Manage EKS clusters and kubeconfigs. —
aws eks update-kubeconfig --name my-cluster --region us-east-1
- Check
knowledge and prerequisites: aws, kubectl
2. Reason — think for aws
- For
aws-core: Manage core AWS resources from the CLI. — decide which checks to run
- For
aws-serverless: Deploy and manage Lambda functions. — decide which checks to run
- For
aws-kubernetes: Manage EKS clusters and kubeconfigs. — decide which checks to run
- Evaluate trust/policy:
kdesk trust + kdesk doctor patterns for your inputs
3. Act — execute with aws tools
- Tools:
Glob, Grep, Read, Aws, Bash (see frontmatter tools/allowed-tools)
- Use
safe_path for any write; record evidence (paths, checksums)
- Fingerprint:
aws:b17e3dab
AWS
Operate AWS with the official CLI.
When to Use
- Managing S3, EC2, Lambda, EKS, and IAM
- Deploying and debugging serverless functions
- Cluster access for EKS
- Automation and scripted infrastructure checks
Configuration
aws configure
aws configure --profile prod
export AWS_PROFILE=prod
aws sts get-caller-identity
Commands
# S3
aws s3 ls
aws s3 cp file.txt s3://my-bucket/
aws s3 sync ./dist s3://my-bucket/ --delete
# EC2
aws ec2 describe-instances --query "Reservations[*].Instances[*].[InstanceId,State.Name]"
aws ec2 describe-instances --filters Name=instance-state-name,Values=running
# Lambda
aws lambda list-functions
aws lambda invoke --function-name myfunc --payload "{}" out.json
aws lambda update-function-code --function-name myfunc --zip-file fileb://func.zip
aws logs tail /aws/lambda/myfunc --follow
# EKS
aws eks update-kubeconfig --name my-cluster --region us-east-1
aws eks list-clusters
kubectl get nodes
Best Practices
- Use named profiles and never hardcode credentials
- Prefer IAM roles over long-lived keys (instance profiles, OIDC)
- Add --query and --output table for readable scripts
- Pin the CLI version in CI and test with --dryrun
- Enable CloudTrail to audit CLI and SDK actions
- Always scope S3 policies and IAM policies to least privilege
Capabilities
aws-core
Manage core AWS resources from the CLI.
Parameters:
region (string): AWS region
profile (string): Named profile
query (string): JMESPath query
Commands:
aws s3 ls
aws s3 cp file.txt s3://my-bucket/
aws ec2 describe-instances --query "Reservations[*].Instances[*].[InstanceId,State.Name]"
aws ec2 describe-regions
aws sts get-caller-identity
Examples:
- aws s3 sync ./dist s3://my-bucket/ --delete
- aws ec2 describe-instances --filters Name=instance-state-name,Values=running --query "Reservations[].Instances[].PublicIpAddress"
- aws iam list-users --output table
aws-serverless
Deploy and manage Lambda functions.
Parameters:
function (string): Lambda function name
region (string): AWS region
Commands:
aws lambda list-functions --region us-east-1
aws lambda invoke --function-name myfunc --payload "{}" out.json
aws lambda update-function-code --function-name myfunc --zip-file fileb://func.zip
aws logs tail /aws/lambda/myfunc
aws logs describe-log-groups
Examples:
- aws lambda invoke --cli-binary-format raw-in-base64-out --function-name myfunc --payload "{"key":"v"}" out.json
- aws logs tail /aws/lambda/myfunc --follow
- aws lambda get-function-configuration --function-name myfunc
aws-kubernetes
Manage EKS clusters and kubeconfigs.
Parameters:
cluster (string): EKS cluster name
region (string): AWS region
Commands:
aws eks update-kubeconfig --name my-cluster --region us-east-1
aws eks list-clusters
aws eks describe-cluster --name my-cluster --query "cluster.status"
kubectl get nodes
Examples:
- aws eks update-kubeconfig --name my-cluster --alias prod
- aws eks list-nodegroups --cluster-name my-cluster
References
1---2name: "aws"3description: "Operates AWS services with the AWS CLI: EC2, S3, IAM, Lambda, EKS, and CloudWatch across accounts and regions. Use when working with aws core, aws serverless, aws kubernetes, cloud or when the user mentions aws core, aws serverless, aws kubernetes, cloud."4license: "MIT"5compatibility: "Requires aws, kubectl. Needs network access."6metadata:7 source: https://skillmd.com/skills/opknock/aws8 author: Kdesk9 version: 2.0.010 category: cloud11allowed-tools: "Glob Grep Read Bash(aws:*) Bash(kubectl:*)"12---1314Operates AWS services with the AWS CLI: EC2, S3, IAM, Lambda, EKS, and CloudWatch across accounts and regions.1516## Agentic Workflow: Read -> Reason -> Act (aws)1718You are **aws** (cloud/general) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.1920### 1. Read — cloud context for `aws`21- Domain: Operates AWS services with the AWS CLI: EC2, S3, IAM, Lambda, EKS, and CloudWatch across accounts and regions.22- **aws-core**: Manage core AWS resources from the CLI. — `aws s3 ls`23- **aws-serverless**: Deploy and manage Lambda functions. — `aws lambda list-functions --region us-east-1`24- **aws-kubernetes**: Manage EKS clusters and kubeconfigs. — `aws eks update-kubeconfig --name my-cluster --region us-east-1`25- Check `knowledge` and `prerequisites: aws, kubectl`2627### 2. Reason — think for `aws`28- For `aws-core`: Manage core AWS resources from the CLI. — decide which checks to run29- For `aws-serverless`: Deploy and manage Lambda functions. — decide which checks to run30- For `aws-kubernetes`: Manage EKS clusters and kubeconfigs. — decide which checks to run31- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs3233### 3. Act — execute with `aws` tools34- Tools: `Glob`, `Grep`, `Read`, `Aws`, `Bash` (see frontmatter `tools`/`allowed-tools`)35- Use `safe_path` for any write; record evidence (paths, checksums)36- Fingerprint: `aws:b17e3dab`3738# AWS3940Operate AWS with the official CLI.4142## When to Use4344- Managing S3, EC2, Lambda, EKS, and IAM45- Deploying and debugging serverless functions46- Cluster access for EKS47- Automation and scripted infrastructure checks4849## Configuration5051```bash52aws configure53aws configure --profile prod54export AWS_PROFILE=prod55aws sts get-caller-identity56```5758## Commands5960```bash61# S362aws s3 ls63aws s3 cp file.txt s3://my-bucket/64aws s3 sync ./dist s3://my-bucket/ --delete6566# EC267aws ec2 describe-instances --query "Reservations[*].Instances[*].[InstanceId,State.Name]"68aws ec2 describe-instances --filters Name=instance-state-name,Values=running6970# Lambda71aws lambda list-functions72aws lambda invoke --function-name myfunc --payload "{}" out.json73aws lambda update-function-code --function-name myfunc --zip-file fileb://func.zip74aws logs tail /aws/lambda/myfunc --follow7576# EKS77aws eks update-kubeconfig --name my-cluster --region us-east-178aws eks list-clusters79kubectl get nodes80```8182## Best Practices8384- Use named profiles and never hardcode credentials85- Prefer IAM roles over long-lived keys (instance profiles, OIDC)86- Add --query and --output table for readable scripts87- Pin the CLI version in CI and test with --dryrun88- Enable CloudTrail to audit CLI and SDK actions89- Always scope S3 policies and IAM policies to least privilege9091## Capabilities9293### aws-core94Manage core AWS resources from the CLI.9596**Parameters:**97- `region` (string): AWS region98- `profile` (string): Named profile99- `query` (string): JMESPath query100101**Commands:**102- `aws s3 ls`103- `aws s3 cp file.txt s3://my-bucket/`104- `aws ec2 describe-instances --query "Reservations[*].Instances[*].[InstanceId,State.Name]"`105- `aws ec2 describe-regions`106- `aws sts get-caller-identity`107108**Examples:**109- aws s3 sync ./dist s3://my-bucket/ --delete110- aws ec2 describe-instances --filters Name=instance-state-name,Values=running --query "Reservations[*].Instances[*].PublicIpAddress"111- aws iam list-users --output table112113### aws-serverless114Deploy and manage Lambda functions.115116**Parameters:**117- `function` (string): Lambda function name118- `region` (string): AWS region119120**Commands:**121- `aws lambda list-functions --region us-east-1`122- `aws lambda invoke --function-name myfunc --payload "{}" out.json`123- `aws lambda update-function-code --function-name myfunc --zip-file fileb://func.zip`124- `aws logs tail /aws/lambda/myfunc`125- `aws logs describe-log-groups`126127**Examples:**128- aws lambda invoke --cli-binary-format raw-in-base64-out --function-name myfunc --payload "{\"key\":\"v\"}" out.json129- aws logs tail /aws/lambda/myfunc --follow130- aws lambda get-function-configuration --function-name myfunc131132### aws-kubernetes133Manage EKS clusters and kubeconfigs.134135**Parameters:**136- `cluster` (string): EKS cluster name137- `region` (string): AWS region138139**Commands:**140- `aws eks update-kubeconfig --name my-cluster --region us-east-1`141- `aws eks list-clusters`142- `aws eks describe-cluster --name my-cluster --query "cluster.status"`143- `kubectl get nodes`144145**Examples:**146- aws eks update-kubeconfig --name my-cluster --alias prod147- aws eks list-nodegroups --cluster-name my-cluster148149## References150- [AWS CLI Reference](https://awscli.amazonaws.com/v2/documentation/api/latest/index.html)151- [AWS SDK and Tools](https://docs.aws.amazon.com/cli/latest/userguide/)