Inspect AWS identity, S3 object metadata, and CloudWatch with signed REST helpers.
- Other
- aws
- sts
- s3
- cloudwatch
- logs
- metrics
- sigv4
- iam
- dry-run
- License
- MIT
- Published
- August 22, 2026
- Pinned commit
25d66e6- Rating
- No ratings yet
- Forks
- 0
- Stars
- 0
- Adaptation effort
- —
README
@kody/aws
Official AWS smile wordmark (paths from Amazon Web Services) in Squid Ink #252F3E and Amazon Orange #FF9900. Amazon Web Services® and the AWS logo are trademarks of Amazon.com, Inc. or its affiliates. This package is not affiliated with or endorsed by Amazon.
Intent
Give agents a fork-ready AWS toolkit for STS identity, S3 list/metadata,
CloudWatch logs and metrics, and generic SigV4-signed REST. Auth is a saved
access key plus secret key (optional session token). Reads stay slim. S3 never
dumps object bodies. Writes support dryRun and require confirm: true.
This listing is meant to be forked. The live @kody/aws package does not talk
to a shared AWS account. After you fork, save your own credentials and call the
helpers in your account. No account ids or bucket names belong in this package.
Share this package as https://kody.codes/@kody/aws
Agent setup
- Create an IAM user or role session with least-privilege keys from the IAM console. Never paste secret values into chat.
- Save the access key id:
- Save the secret access key:
- Optional temporary session token:
- Approve those amazonaws.com hosts. Add
{service}.{region}.amazonaws.comwhen you call another region. - Run the smoke test below.
Default region is us-east-1 unless you pass region or store a fork-local
default with ./config.
Additional accounts
Pass account: "work" to use awsAccessKeyId-work / awsSecretAccessKey-work.
Exports
kody:@kody/aws— package overview and safety metadatakody:@kody/aws/guide— console steps and prefilled secret URLskody:@kody/aws/smoke-test— dry-run self-check; live STS only when secrets mountkody:@kody/aws/identity— STS GetCallerIdentity (account / ARN / user id)kody:@kody/aws/s3— list buckets, list objects, HEAD metadata; put/delete dry-runkody:@kody/aws/logs— CloudWatch log groups and redacted log eventskody:@kody/aws/metrics— CloudWatch metric list and statisticskody:@kody/aws/request— generic signed REST escape hatchkody:@kody/aws/config— optional default region inpackageStorage()
The optional identity-check job is disabled by default.
Smoke test
import smokeTest from 'kody:@kody/aws/smoke-test'
export default async function main() {
return await smokeTest()
}Without credentials this returns { ok: true, live: false } plus the setup
URLs. It never prints secret values or S3 object bodies.
dryRun
S3 put/delete and other writes default to dry-run. They return a preview
unless confirm: true (and dryRun is not true).
import { putObject } from 'kody:@kody/aws/s3'
export default async function main() {
return putObject({
bucket: 'example-bucket',
key: 'notes.txt',
body: 'hello',
})
}That call previews. A live write after explicit user approval of the exact bucket and key:
import { putObject } from 'kody:@kody/aws/s3'
export default async function main() {
return putObject({
bucket: 'example-bucket',
key: 'notes.txt',
body: 'hello',
confirm: true,
})
}Notes
- S3
getObjectMetadatais HEAD-only. This package will not dump object bodies. - Log and generic REST helpers redact credential-shaped text.
- Live
@kody/awspackageStorage()is the platform bucket — fork first. - This package is not affiliated with or endorsed by Amazon.
Docs
Report this listing
Log in to report this listing.