secrets-management

Configures CloudFormation references to AWS SSMf Parameter Store secrets via environment variables and typed structs.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/bjaus/dotfiles --skill secrets-management-bjaus
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: secrets-management
Source: https://github.com/bjaus/dotfiles/tree/main/plugin/skills/secrets-management
Command: npx skills add https://github.com/bjaus/dotfiles --skill secrets-management-bjaus

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the risk and friction of handling secrets in software systems by guiding the use of AWS SSM Parameter Store for secrets, environment-based configuration, and CloudFormation reference syntax to keep credentials out of code and infrastructure templates.

Core Features & Use Cases

  • Structured Config via env + SSM: Define a Config struct that maps environment variables and SSM parameters for both non-secret and secret values.
  • CloudFormation Integration: Reference SSM parameters in templates using resolve syntax to support dev/qa/prod environments without embedding secrets.
  • Security Best Practices: Enforce ssm-secure usage for sensitive values, IAM-scoped access, and rotation workflows; provide templates for policy and parameter naming.

Quick Start

Follow the pattern to implement a secrets management config using SSM Parameter Store and environment variables in your service, and reference them from CloudFormation.

Frequently Asked Questions about secrets-management

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

FAQPage Schema
How do I manage secrets in AWS using SSM Parameter Store and CloudFormation?

To manage secrets with SSM and CloudFormation, define a Config struct mapping environment variables and SSM parameters, then reference them in templates using resolve syntax. This keeps credentials out of code and supports dev/qa/prod environments securely.

What is the best way to keep credentials out of infrastructure templates?

The best way to keep credentials out of templates is combining AWS SSM Parameter Store with environment-based configuration. Use CloudFormation reference syntax and ssm-secure usage to handle sensitive values without embedding secrets directly in infrastructure code.

Can I use environment variables with SSM Parameter Store for non-secret and secret values?

Yes, you can use environment variables with SSM Parameter Store by defining a structured Config struct. This maps both non-secret and secret values, enforcing ssm-secure usage for sensitive data while maintaining environment-based configuration across your service.

How do I reference SSM parameters in CloudFormation templates for multiple environments?

Reference SSM parameters in CloudFormation templates using resolve syntax to support dev/qa/prod environments. This approach prevents embedding secrets in templates and enables IAM-scoped access alongside structured parameter naming for secure deployment workflows.

Does secrets management with SSM support rotation workflows and IAM-scoped access?

Yes, secrets management with SSM supports rotation workflows and IAM-scoped access. It provides templates for policy and parameter naming, enforces ssm-secure usage for sensitive values, and maintains minimal code exposure for infrastructure-as-code workflows.

When should I not use environment variables for secrets management?

Avoid using environment variables alone for secrets management when handling sensitive values requiring strict rotation and IAM-scoped access. Combine them with AWS SSM Parameter Store and CloudFormation references to ensure secure handling and minimal code exposure.