FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Secrets management in AWS: the right architecture at each scale
NewsDevOps

Secrets management in AWS: the right architecture at each scale

via Dev.to DevOpsYash9h ago

Secrets management in AWS: the right architecture at each scale Most teams start with environment variables. By year two, it's a liability. Stage 2: AWS Secrets Manager (prod-ready) resource "aws_secretsmanager_secret" "db" { name = "/${var.env}/${var.project}/database/password" recovery_window_in_days = 7 } resource "aws_secretsmanager_secret_rotation" "db" { secret_id = aws_secretsmanager_secret . db . id rotation_lambda_arn = aws_lambda_function . rotation . arn rotation_rules { automatically_after_days = 30 } } Read at runtime (not deploy time): import boto3 , json def get_secret ( name : str ) -> dict : return json . loads ( boto3 . client ( " secretsmanager " ). get_secret_value ( SecretId = name )[ " SecretString " ] ) db = get_secret ( " /prod/payment-api/database/password " ) IAM policy (least privilege): resource "aws_iam_role_policy" "read_secrets" { role = aws_iam_role . app . id policy = jsonencode ({ Statement = [{ Effect = "Allow" Action = [ "secretsmanager:GetSecretValu

Continue reading on Dev.to DevOps

Opens in a new tab

Read Full Article
6 views

Related Articles

YouTube rolls out unskippable ads - they're so annoying I'm mulling drastic measures
News

YouTube rolls out unskippable ads - they're so annoying I'm mulling drastic measures

ZDNet • 8h ago

My First Programming Language Was Microsoft Access (And It Taught Me How Software Really Works)
News

My First Programming Language Was Microsoft Access (And It Taught Me How Software Really Works)

Medium Programming • 9h ago

Load Balancer Routed 100% Traffic to One Server. Nobody Noticed for 3 Weeks
News

Load Balancer Routed 100% Traffic to One Server. Nobody Noticed for 3 Weeks

Medium Programming • 9h ago

I found 4 tech gadgets that actually helped me sleep better (and ditch the alarm)
News

I found 4 tech gadgets that actually helped me sleep better (and ditch the alarm)

ZDNet • 9h ago

News

The Strange Things That Happen When You Stop Following the Plan

Medium Programming • 9h ago

Discover More Articles