AWS Certified Developer - Associate

Security

Secrets Manager

In this lesson, we explore AWS Secrets Manager—a crucial service designed for managing, retrieving, and rotating sensitive credentials such as database passwords and API keys.

The image is an infographic about a "Secrets Manager" with icons representing its functions: managing, retrieving, and rotating secrets.

AWS Secrets Manager offers a major advantage over similar services like Parameter Store by providing automatic secret rotation. For instance, you can configure Secrets Manager to rotate your secrets every 60 days using a Lambda function. Additionally, all secrets are encrypted by default with AWS Key Management Service (KMS), ensuring robust security.

The image illustrates a process involving AWS Secrets Manager, a Lambda function, and AWS Key Management Service (KMS), with a password update every 60 days.

Note

When choosing between AWS Systems Manager Parameter Store and Secrets Manager, always consider the sensitivity of your data. For sensitive information that requires regular rotation and enhanced security, Secrets Manager is typically the preferred service.

Secrets Manager not only manages secrets but also integrates seamlessly with Amazon Relational Database Service (RDS). It can automatically configure initial credentials for new RDS instances, eliminating the need to manually set usernames and passwords.

The image illustrates the integration of AWS Secrets Manager with Amazon Relational Database Service (RDS), showing a flow of credentials (username and password) between them.

Key Features of AWS Secrets Manager

Below is a summary table that highlights the key features and benefits of using AWS Secrets Manager over Parameter Store:

FeatureAWS Secrets ManagerParameter Store
Automatic RotationSupports automatic rotation via Lambda functionsDoes not support automatic rotation
Default EncryptionEncrypts secrets automatically using KMSCan be configured to encrypt, but not by default
Integration with RDSIntegrates seamlessly to manage database credentialsTypically used for non-sensitive configuration data

Key Benefits

  • Automatic rotation of secrets enhances security and reduces manual overhead.
  • Default encryption with KMS provides strong protection against unauthorized access.
  • Integration with RDS simplifies credential management and boosts operational efficiency.

The image compares AWS Secrets Manager and SSM Parameter Store, highlighting features like Lambda rotation, KMS encryption, and RDS integration for Secrets Manager.

In summary, AWS Secrets Manager is an ideal solution for managing and rotating sensitive credentials including database credentials and API keys. Its advanced features—such as automatic Lambda-based rotation, default KMS encryption, and smooth integration with services like RDS—make it the preferred choice for handling sensitive information in AWS environments.

Watch Video

Watch video content

Previous
Parameter Store Demo