DSH HUB
首页插件商店插件包社区排行榜资源发布指南
插件源码
返回插件目录

LJH-snow /

LJH-snow/dsh-tool-aws

仅 Topic 仓库

这个插件还没有填写简介。

★ 0 Stars0 Forks0 IssuesN/A 社区评分0 已确认安装
查看 GitHub
README来源: main@c40955fe

dsh-tool-aws

English | 中文

Read-only AWS tools for DeepSeek Harness (dsh) as a Cordis plugin. The agent can verify credentials and inspect EC2, S3, Lambda, and CloudWatch resources. Requests are signed with AWS Signature Version 4 using WebCrypto.

Install

npm install @libai168/dsh-tool-aws

Requires @deepseek-ai/cordis (^4.0.1) and @deepseek-ai/dsh-tools (^0.1.0-rc.6) as peer dependencies.

Configuration

- name: 'github:LJH-snow/dsh-tool-aws'
  config:
    region: 'us-east-1'
    accessKeyId: 'AKIA...'
    secretAccessKey: '...'
    # sessionToken: '...'   # temporary credentials
    # endpoint: '...'       # optional public HTTP(S) root endpoint
    # timeoutMs: 15000

The optional endpoint must be an absolute http:// or https:// root URL (for example, https://aws-api.example.test/). Only publicly reachable hosts are allowed. Localhost, loopback, private, link-local, carrier-grade NAT, multicast, and every IANA special-purpose block — reserved/documentation/benchmark ranges, the 2001::/23 IETF protocol assignments prefix, deprecated site-local, SRv6 SIDs, AS112, and IPv4-mapped/NAT64 forms — are rejected, together with hostnames resolving to any such address. Credentials, query strings, fragments, and non-root paths are not allowed. DNS failures are rejected before any request is sent.

Use an IAM user or role with read-only permissions (ec2:DescribeInstances, s3:ListAllMyBuckets, lambda:ListFunctions, logs:DescribeLogGroups, logs:FilterLogEvents, cloudwatch:ListMetrics, sts:GetCallerIdentity).

Tools

All tools are read-only (kind: 'read' or 'search').

Tool Description
aws_sts_get_caller_identity Verify credentials and return account/user/ARN
aws_list_ec2_instances List EC2 instances with filters and pagination
aws_list_s3_buckets List S3 buckets in the account
aws_list_lambda_functions List Lambda functions in the region
aws_list_cloudwatch_log_groups List CloudWatch log groups with prefix filter
aws_get_cloudwatch_log_events Read log events with stream/time-range filters
aws_list_cloudwatch_metrics List CloudWatch metrics by namespace/name
aws_ecr_list_repositories List ECR repositories in the region
aws_ecr_list_images List image tags/digests in one ECR repository
aws_ecr_describe_images Describe ECR images with scan status and severity counts

Error contract

  • Missing credentials: { found: false, reason }.
  • AWS-side errors throw AwsError with the HTTP status and error code; tools surface them as { found: false, reason }.
  • All requests support timeoutMs (default 15s) and propagate the caller's AbortSignal.

Development

npm install
npm run typecheck
npm test
npm run build

License

MIT

—/ 5

暂无评分

需要先验证清单

Commit c40955fe669a

社区评论

还没有评论,来写第一条。

DSH HUB

社区维护的 DSH 插件索引。不是 GitHub 或 DeepSeek AI 的官方产品。

社区资源API关于