creating-secrets-using-best-practices

Create AWS Secrets Manager secrets with KMS keys, rotation, and IAM policies.

Updated Jun 18, 2026
One-click install
npx skills add https://github.com/AndreKurait/claude-marketplace-test --skill creating-secrets-using-best-practices-andrekurait
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: creating-secrets-using-best-practices
Source: https://github.com/AndreKurait/claude-marketplace-test/tree/main/skills/specialized-skills/security-and-identity-skills/creating-secrets-using-best-practices
Command: npx skills add https://github.com/AndreKurait/claude-marketplace-test --skill creating-secrets-using-best-practices-andrekurait

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Creates and manages secrets in AWS Secrets Manager following security best practices. It sets up dedicated KMS encryption keys, automatic rotation, least-privilege IAM policies, CloudTrail auditing, and lifecycle management essential for production-grade secret handling.

Core Features & Use Cases

  • Dedicated KMS keys for encryption of secrets
  • Automatic rotation with AWS managed rotation or custom Lambda
  • Least-privilege IAM policies scoped to the secret and KMS key
  • CloudTrail auditing and lifecycle management
  • Use cases: store database credentials, API keys, OAuth tokens, and custom secrets

Quick Start

Create a production-ready secret in AWS Secrets Manager using dedicated KMS keys, rotation, and least-privilege access.

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 securely store database credentials in AWS Secrets Manager?

Securely store database credentials in AWS Secrets Manager by applying dedicated KMS encryption keys, configuring automatic rotation, and implementing least-privilege IAM policies for production-grade protection.

What is the best way to set up automatic rotation for API keys in AWS Secrets Manager?

The best way to set up automatic rotation for API keys in AWS Secrets Manager is using AWS managed rotation or a custom Lambda function, paired with lifecycle policies to maintain security.

How do I configure least-privilege IAM policies for AWS Secrets Manager?

Configure least-privilege IAM policies for AWS Secrets Manager by scoping permissions strictly to the specific secret and its associated KMS key, ensuring only authorized services can access them.

Does AWS Secrets Manager support CloudTrail auditing for OAuth tokens?

Yes, AWS Secrets Manager supports CloudTrail auditing for OAuth tokens, enabling you to track access and modifications to maintain compliance and document recovery procedures.

Can I use a dedicated KMS key to encrypt custom secrets in AWS?

Yes, you can use a dedicated KMS key to encrypt custom secrets in AWS, ensuring that your API keys, OAuth tokens, and database credentials are protected with production-grade security.

What are the limitations of using AWS managed rotation for Secrets Manager?

Limitations of using AWS managed rotation for Secrets Manager include potential incompatibility with custom secret formats, requiring you to write a custom Lambda function for specialized rotation workflows.