aws-s3
Skill9 starsChanged 8 months agoMITView on GitHub
Amazon S3 bucket and object management. Use when configuring buckets, encryption, versioning, lifecycle policies, presigned URLs, replication or CloudFront CDN origins.
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- sitharaj88/claude-skillstheir own version, first seen Mar 2, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- sitharaj88/claude-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository21 other files it gives its agents.
- aws-apiSkill
- aws-architectureSkill
- aws-cdkSkill
- aws-cloudfrontSkill
- aws-cost-operationsSkill
- aws-diagramsSkill
- aws-dynamodbSkill
- aws-ec2Skill
- aws-lambda-pythonSkill
- aws-lambda-typescriptSkill
- aws-observabilitySkill
- aws-rdsSkill
- aws-securitySkill
- aws-serverlessSkill
- aws-terraformSkill
- aws-testingSkill
- find-skillsSkill
- javascript-runtimeSkill
- orbit-bootstrapSkill
- python-runtimeSkill
- typescript-runtimeSkill
The file
Files
AWS S3
Skill para gestión de Amazon S3: buckets, objetos, cifrado, versionado, lifecycle policies, presigned URLs, replicación, CloudFront como CDN origin y mejores prácticas de seguridad y costos.
Principios fundamentales
- Buckets privados por defecto.
BlockPublicAccess.BLOCK_ALLsiempre habilitado. - Cifrado en reposo obligatorio: SSE-S3 mínimo, SSE-KMS para compliance.
- Versionado habilitado en buckets con datos importantes.
- Lifecycle policies para mover datos a clases de almacenamiento más baratas y expirar objetos temporales.
- Nunca almacenar secretos, credenciales o PII sin cifrado adicional.
Configuración segura de bucket (CDK)
const bucket = new s3.Bucket(this, 'DataBucket', {
encryption: s3.BucketEncryption.S3_MANAGED,
blockPublicAccess: s3.BlockPublicAccess.BLOCK_ALL,
versioned: true,
enforceSSL: true,
removalPolicy: cdk.RemovalPolicy.RETAIN,
objectOwnership: s3.ObjectOwnership.BUCKET_OWNER_ENFORCED,
lifecycleRules: [{
id: 'transition-to-ia',
transitions: [{
storageClass: s3.StorageClass.INFREQUENT_ACCESS,
transitionAfter: cdk.Duration.days(90),
}, {
storageClass: s3.StorageClass.GLACIER,
transitionAfter: cdk.Duration.days(365),
}],
expiration: cdk.Duration.days(730),
}],
});Presigned URLs para acceso temporal
import { S3Client, GetObjectCommand, PutObjectCommand } from '@aws-sdk/client-s3';
import { getSignedUrl } from '@aws-sdk/s3-request-presigner';
const s3 = new S3Client({});
// URL de descarga (15 minutos)
const downloadUrl = await getSignedUrl(s3, new GetObjectCommand({
Bucket: process.env.BUCKET_NAME,
Key: `uploads/${userId}/${fileId}`,
}), { expiresIn: 900 });
// URL de subida (5 minutos, máximo 10MB)
const uploadUrl = await getSignedUrl(s3, new PutObjectCommand({
Bucket: process.env.BUCKET_NAME,
Key: `uploads/${userId}/${fileId}`,
ContentType: 'application/pdf',
}), { expiresIn: 300 });Clases de almacenamiento
| Clase | Costo/GB | Acceso | Caso de uso |
| Standard | $0.023 | Inmediato | Datos activos, assets de app |
| Intelligent-Tiering | $0.023 + monitoring | Inmediato | Patrones impredecibles |
| Standard-IA | $0.0125 | Inmediato (cargo por acceso) | Backups, datos infrecuentes |
| Glacier Instant | $0.004 | Inmediato | Archival con acceso rápido |
| Glacier Flexible | $0.0036 | Minutos a horas | Archival estándar |
| Deep Archive | $0.00099 | 12+ horas | Compliance, retención legal |
Bucket policy: enforce HTTPS
{
"Version": "2012-10-17",
"Statement": [{
"Sid": "EnforceHTTPS",
"Effect": "Deny",
"Principal": "*",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::my-bucket",
"arn:aws:s3:::my-bucket/*"
],
"Condition": {
"Bool": { "aws:SecureTransport": "false" }
}
}]
}Event notifications (CDK)
// Trigger Lambda cuando se sube un archivo
bucket.addEventNotification(
s3.EventType.OBJECT_CREATED,
new s3n.LambdaDestination(processorFn),
{ prefix: 'uploads/', suffix: '.pdf' }
);
// Trigger SQS para procesamiento batch
bucket.addEventNotification(
s3.EventType.OBJECT_CREATED,
new s3n.SqsDestination(processingQueue),
{ prefix: 'data/' }
);Anti-patrones a evitar
- ❌ Buckets públicos (usar CloudFront + OAC).
- ❌ Sin cifrado en reposo.
- ❌ Sin versionado en datos importantes.
- ❌ Sin lifecycle policies (datos acumulándose sin control).
- ❌ Presigned URLs con expiración demasiado larga.
- ❌ Bucket names con información sensible.
- ❌ Sin enforce SSL (permitir HTTP).
- ❌ Usar S3 como base de datos (para eso está DynamoDB).
- ❌ Subir archivos grandes sin multipart upload.
- ❌ Sin logging de acceso habilitado en producción.
Checklist de revisión S3
- BlockPublicAccess.BLOCK_ALL habilitado.
- Cifrado en reposo (SSE-S3 o SSE-KMS).
- Versionado habilitado para datos importantes.
- Lifecycle policies configuradas.
- Enforce SSL con bucket policy.
- CloudFront + OAC para servir contenido público.
- Event notifications configuradas donde aplica.
- Access logging habilitado en producción.
- CORS configurado solo con dominios específicos.
- Presigned URLs con expiración mínima necesaria.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

