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
IAM role assumption across AWS accounts: the right way (with working Terraform)
NewsDevOps

IAM role assumption across AWS accounts: the right way (with working Terraform)

via Dev.toYash3w ago

IAM role assumption across AWS accounts: the right way Most teams still store long-lived AWS access keys in CI/CD secrets. Here's the right pattern. Why role assumption beats stored credentials Approach Risk Rotation Auditability Access key in CI secret High (never expires) Manual Poor OIDC + role assumption Low (per-job token) Automatic Full CloudTrail Architecture GitHub Actions → OIDC JWT → IAM (TOOLING account) → sts:AssumeRole → ci-deploy-role (PROD account) → Deploy OIDC provider + trust policy resource "aws_iam_openid_connect_provider" "github" { url = "https://token.actions.githubusercontent.com" client_id_list = [ "sts.amazonaws.com" ] thumbprint_list = [ "6938fd4d98bab03faadb97b34396831e3780aea1" ] } resource "aws_iam_role" "github_actions" { name = "github-actions-oidc" assume_role_policy = jsonencode ({ Version = "2012-10-17" Statement = [{ Effect = "Allow" Principal = { Federated = aws_iam_openid_connect_provider . github . arn } Action = "sts:AssumeRoleWithWebIdentity" Co

Continue reading on Dev.to

Opens in a new tab

Read Full Article
23 views

Related Articles

Axios Gets 100 Million Downloads a Week. Today, Two Came With a Trojan.
News

Axios Gets 100 Million Downloads a Week. Today, Two Came With a Trojan.

Medium Programming • 1d ago

Robotaxi companies refuse to say how often their AVs need remote help
News

Robotaxi companies refuse to say how often their AVs need remote help

TechCrunch • 1d ago

I Set the Thread Pool to 8 and Brought Down Black Friday
News

I Set the Thread Pool to 8 and Brought Down Black Friday

Medium Programming • 1d ago

News

How I Built Simple Automation Systems That Save Time (And Why Businesses Need Them)

Medium Programming • 1d ago

News

wastrelly wabbits

Lobsters • 1d ago

Discover More Articles