creating-secrets-using-best-practices

Automate AWS Secrets Manager secret creation with encryption, rotation, and auditing.

2.3k|234|Updated Apr 23, 2026
One-click install
npx skills add https://github.com/aws/agent-toolkit-for-aws --skill creating-secrets-using-best-practices-aws
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: creating-secrets-using-best-practices
Source: https://github.com/aws/agent-toolkit-for-aws/tree/main/skills/specialized-skills/security-and-identity-skills/creating-secrets-using-best-practices
Command: npx skills add https://github.com/aws/agent-toolkit-for-aws --skill creating-secrets-using-best-practices-aws

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

AWS Secrets Manager secret creation and lifecycle management is implemented following security best practices, including dedicated KMS keys, automatic rotation, least-privilege IAM, CloudTrail auditing, and lifecycle controls.

Core Features & Use Cases

  • Produce production-grade secret configurations with encryption, rotation, and auditing.
  • Supports multiple secret types (database credentials, API keys, OAuth tokens, custom secrets) with structured formats.
  • Provides lifecycle management, tagging, and controlled access for compliant secret handling.

Quick Start

Add a new secret in Secrets Manager using the recommended KMS key and rotation settings to enforce security best practices.

Frequently Asked Questions about creating-secrets-using-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure AWS Secrets Manager for automatic rotation and least-privilege IAM?

Configure AWS Secrets Manager by applying production-grade security controls including dedicated KMS keys, automatic rotation schedules, and least-privilege IAM policies to manage the full secret lifecycle.

What's the best way to secure database credentials and API keys in AWS production environments?

Securing database credentials and API keys in AWS production environments requires structured secret formats with dedicated KMS encryption, automatic rotation configuration, and CloudTrail auditing for compliance.

How does CloudTrail auditing work with Secrets Manager lifecycle controls?

CloudTrail auditing with Secrets Manager lifecycle controls records API calls managing secret creation, rotation, and access, providing an auditable history ensuring compliant secret handling across production environments.

Do I need a dedicated KMS key to encrypt OAuth tokens and custom secrets in AWS?

A dedicated KMS key is required to encrypt OAuth tokens and custom secrets in AWS, ensuring production-grade encryption and controlled access compliant with security best practices.

Can I manage multiple secret types like database credentials and API keys using structured formats?

You can manage multiple secret types including database credentials, API keys, OAuth tokens, and custom secrets using structured formats with tagging and lifecycle controls for compliant secret handling.

Why apply least-privilege IAM policies when creating secrets in AWS Secrets Manager?

Applying least-privilege IAM policies when creating secrets in AWS Secrets Manager restricts access to only authorized entities, minimizing exposure and maintaining secure, controlled access across production environments.