
Securing S3 Buckets
This one walks you through the full S3 security checklist: creating buckets with default-deny policies, auditing existing configurations against AWS best practices, and fixing specific findings like missing encryption or public access. It enforces some opinionated constraints (customer-managed KMS keys only, mandatory HTTPS-only policies, bucket key enablement) and includes safety rails around put-bucket-policy so you don't accidentally wipe existing statements. The audit workflow checks versioning, encryption, logging, public access blocks, and Object Lock, then reports each as pass/fail with severity. It's detailed enough that you could hand it to someone unfamiliar with S3 security and they'd get a properly locked-down bucket, but experienced users might find the guardrails restrictive.
- skills.sh installs
- 7.4K
- GitHub stars
- 3.4K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add aws/agent-toolkit-for-aws --skill securing-s3-buckets --agent claude-codeInstalls into .claude/skills of the current project.
Files
Overview
Implements layered S3 security controls across five workflows: securing new buckets, auditing existing configurations, remediating findings, configuring encryption, and enabling monitoring. Follows AWS Well-Architected security best practices.
Execute commands using the AWS MCP server when connected (sandboxed execution, audit logging, observability). Fall back to AWS CLI or shell otherwise.
Common Tasks
0. Verify Dependencies
Check for required tools before starting.
Constraints:
- You MUST inform the user if required tools are missing
- You SHOULD confirm credentials with
aws sts get-caller-identity
See references/iam-permissions.md for IAM permissions by workflow.
1. Classify the Request
| User intent | Workflow |
|---|---|
| Secure a new bucket | A: Secure New Bucket |
| Audit / review existing bucket | B: Audit Existing Bucket |
| Fix a specific finding | C: Remediate Issue |
| Configure encryption | D: Configure Encryption |
| Enable logging / monitoring | E: Enable Monitoring |
Constraints:
Sponsors
Details
- Repository
- github.com/aws/agent-toolkit-for-aws
- Categories
- Security, DevOps & CI/CD, AI & Agent Building, Debugging, Cloud & Infrastructure
- First seen
- May 16, 2026
More from aws/agent-toolkit-for-aws
All 56- Connecting To Data Source7.2K
- Creating Secrets Using Best Practices7.2K
- Exploring Data Catalog7.1K
- Querying Data Lake7.1K
- Storing And Querying Vectors7K
- Connecting Lambda To Api Gateway7K
- Aws Sdk Swift Usage7K
- Ingesting Into Data Lake7K
- Aws Amplify7K
- Creating Data Lake Table7K
- Finding Data Lake Assets7K
- Connecting Lambda To Dynamodb6.9K
- Troubleshooting Application Failures6.9K
- Configuring Vpc Endpoints For Private Aws Service Access6.8K
- Debugging Lambda Timeouts6.8K
- Setting Up Cloudwatch Alarm Notifications6.8K
- Launching Ec2 Instance With Best Practices6.8K
- Troubleshooting S3 Files6.7K
- Creating Api Gateway Stage6.7K
- Setting Up Ec2 Instance Profiles6.6K
- Creating Production Vpc Multi Az6.6K
- Signing In To Aws6.6K
- Aws Transform6.5K
- Connecting Vpcs With Peering6.5K