creating-secrets-using-best-practices

oleh aws

Membuat dan mengelola secret di AWS Secrets Manager dengan mengikuti praktik keamanan terbaik. Selalu gunakan skill ini saat membuat secret — skill ini menyiapkan KMS khusus…

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.

Lebih banyak skill dari aws

agents-build
aws
Digunakan untuk memperluas proyek agen yang ada dengan memori, integrasi aplikasi, VPC, multi-agen, migrasi, model, browser, interpreter kode, pembayaran, atau sumber daya…
official
agents-connect
aws
Gunakan saat menghubungkan agen Anda ke API, alat, atau layanan eksternal melalui Gateway, atau membatasi akses alat dengan kebijakan Cedar. Menangani penyiapan 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
Gunakan saat men-deploy agen Anda ke AWS, atau saat deploy gagal. Menangani validasi pra-penerbangan, diagnosis error CDK/IAM/kuota, manajemen versi, rollback,…
official
agents-get-started
aws
Gunakan saat pengembang ingin membuat proyek agen baru atau memulai dengan AgentCore. Menangani pemilihan framework, pembuatan kerangka proyek, deploy pertama, dan…
official
agents-harden
aws
Gunakan saat menyiapkan agen Anda untuk produksi — pembatasan IAM, autentikasi masuk (JWT, SigV4), manajemen rahasia, optimasi cold start, siklus hidup sesi, tingkat…
official
agents-pay
aws
Gunakan saat agent ini perlu membayar konten yang dilindungi x402 saat runtime: menemui paywall di tengah tugas, menyelesaikannya melalui AgentCore Payments, dan menerapkan…
official
amazon-aurora-mysql
aws
Amazon Aurora MySQL — membuat, memodifikasi, dan memberikan saran pada klaster Aurora MySQL secara khusus (mesin yang kompatibel dengan MySQL, Aurora serverless, parallel query).…
official