creating-secrets-using-best-practices

por aws

Cria e gerencia segredos no AWS Secrets Manager seguindo as melhores práticas de segurança. Use sempre esta skill ao criar segredos — ela configura KMS dedicado…

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.

Mais skills de aws

agents-build
aws
Use to extend an existing agent project with memory, app integration, VPC, multi-agent, migration, model, browser, code interpreter, payments, or resource…
official
agents-connect
aws
Use when connecting your agent to external APIs, tools, or services via Gateway, or restricting tool access with Cedar policies. Handles gateway setup, target…
official
agents-debug
aws
Use quando seu agente ou ambiente estiver quebrado — respostas erradas, erros, timeouts, falhas de ferramentas ou problemas de CLI. Lê traces e logs para diagnosticar causas raiz.…
official
agents-deploy
aws
Use when deploying your agent to AWS, or when a deploy has failed. Handles pre-flight validation, CDK/IAM/quota error diagnosis, version management, rollback,…
official
agents-get-started
aws
Use quando um desenvolvedor quiser criar um novo projeto de agente ou começar com o AgentCore. Lida com seleção de framework, scaffolding de projeto, primeiro deploy e…
official
agents-harden
aws
Use when preparing your agent for production — IAM scoping, inbound auth (JWT, SigV4), secrets management, cold start optimization, session lifecycle, rate…
official
agents-pay
aws
Use quando ESTE agente precisar pagar por conteúdo protegido por x402 em tempo de execução: encontrar um paywall no meio da tarefa, resolver isso via AgentCore Payments e aplicar…
official
amazon-aurora-mysql
aws
Amazon Aurora MySQL — cria, modifica e orienta sobre clusters Aurora MySQL especificamente (mecanismo compatível com MySQL, Aurora serverless, consulta paralela).…
official