creating-secrets-using-best-practices

por aws

Creates and manages secrets in AWS Secrets Manager following security best practices. Always use this skill when creating secrets — it sets up dedicated KMS…

npx skills add https://github.com/aws/agent-toolkit-for-aws --skill creating-secrets-using-best-practices

Creating Secrets Using Best Practices

Overview

Domain expertise for creating and managing secrets in AWS Secrets Manager with production-grade security controls: KMS encryption, automatic rotation, least-privilege IAM policies, CloudTrail auditing, and lifecycle management.

Create a secret with best practices

To create a properly secured secret in AWS Secrets Manager, follow the procedure exactly. See secret creation procedure.

The procedure supports four secret types: database credentials, API keys, OAuth tokens, and custom secrets. Each type is structured appropriately and encrypted with a dedicated KMS key.

Troubleshooting

KMS key access issues

Verify the IAM principal has kms:CreateKey and kms:PutKeyPolicy permissions, and that the key policy grants kms:GenerateDataKey, kms:Decrypt, and kms:DescribeKey scoped with kms:ViaService to secretsmanager.<region>.amazonaws.com. See the full procedure for details.

Rotation setup failures

Check that the Lambda rotation function exists, has proper permissions, and can reach the target system. Review CloudWatch logs for the rotation function.

Secret access denied

Verify the IAM policy is attached to the correct principal, the KMS key policy allows decryption (and kms:GenerateDataKey for write/rotation), and the principal is using HTTPS. See the full procedure for details.

Más skills de aws

agents-build
aws
Úsalo para ampliar un proyecto de agente existente con memoria, integración de aplicaciones, VPC, multi-agente, migración, modelo, navegador, intérprete de código, pagos o recursos…
official
agents-connect
aws
Úsalo al conectar tu agente a APIs, herramientas o servicios externos a través de Gateway, o al restringir el acceso a herramientas con políticas de Cedar. Gestiona la configuración de gateway, target…
official
agents-debug
aws
Use when your agent or environment is broken — wrong answers, errors, timeouts, tool failures, or CLI issues. Reads traces and logs to diagnose root causes.…
official
agents-deploy
aws
Úsalo al implementar tu agente en AWS o cuando una implementación haya fallado. Gestiona la validación previa al vuelo, el diagnóstico de errores de CDK/IAM/cuotas, la gestión de versiones, la reversión,…
official
agents-get-started
aws
Úsalo cuando un desarrollador quiera crear un nuevo proyecto de agente o comenzar con AgentCore. Maneja la selección de framework, el scaffolding del proyecto, el primer despliegue y…
official
agents-harden
aws
Úsalo al preparar tu agente para producción: alcance de IAM, autenticación de entrada (JWT, SigV4), gestión de secretos, optimización de arranque en frío, ciclo de vida de sesión, tasas…
official
agents-pay
aws
Úsalo cuando ESTE agente necesite pagar por contenido protegido con x402 en tiempo de ejecución: encontrarse con un muro de pago a mitad de tarea, resolverlo mediante AgentCore Payments y aplicar…
official
amazon-aurora-mysql
aws
Amazon Aurora MySQL — crea, modifica y asesora sobre clústeres de Aurora MySQL específicamente (motor compatible con MySQL, Aurora serverless, consulta paralela).…
official