creating-secrets-using-best-practices

作成者: aws

AWS Secrets Managerにおいてセキュリティのベストプラクティスに従ってシークレットを作成・管理します。シークレットを作成する際は常にこのスキルを使用してください。専用の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.

awsのその他のスキル

agents-build
aws
既存のエージェントプロジェクトを、メモリ、アプリ統合、VPC、マルチエージェント、移行、モデル、ブラウザ、コードインタープリター、決済、またはリソースで拡張するために使用します。
official
agents-connect
aws
エージェントをGateway経由で外部API、ツール、またはサービスに接続する場合、またはCedarポリシーでツールアクセスを制限する場合に使用します。ゲートウェイのセットアップ、ターゲット…
official
agents-debug
aws
エージェントや環境が壊れている場合に使用します。誤った回答、エラー、タイムアウト、ツールの失敗、CLIの問題など。トレースとログを読み、根本原因を診断します。…
official
agents-deploy
aws
エージェントをAWSにデプロイする際、またはデプロイが失敗した際に使用します。事前検証、CDK/IAM/クォータエラーの診断、バージョン管理、ロールバックなどを処理します。
official
agents-get-started
aws
開発者が新しいエージェントプロジェクトを作成したい場合や、AgentCoreを使い始めたい場合に使用します。フレームワークの選択、プロジェクトの雛形作成、初回デプロイなどを処理します。
official
agents-harden
aws
エージェントを本番環境向けに準備する際に使用します — IAMスコープ、インバウンド認証(JWT、SigV4)、シークレット管理、コールドスタート最適化、セッションライフサイクル、レート…
official
agents-pay
aws
実行時にx402で保護されたコンテンツの支払いが必要な場合に使用する:タスク途中でペイウォールに遭遇した際、AgentCore Paymentsを通じて決済し、適用する…
official
amazon-aurora-mysql
aws
Amazon Aurora MySQL — Aurora MySQLクラスター(MySQL互換エンジン、Auroraサーバーレス、パラレルクエリ)の作成、変更、およびアドバイスを特に行います。…
official