liveBook · Manning

IAM role

As explained in MongoDB 8.0 in Action, Third Edition

An AWS IAM role is an AWS identity with a defined set of permissions that services or users can assume without using long-term credentials.

An AWS IAM role is an AWS identity with defined permissions that services or users assume without long-term credentials. For Atlas connections, it replaces passwords and API keys with role-based authentication. section 20.2.1

Use IAM roles when an AWS-hosted application needs secure, centrally managed access to Atlas:

  • Let EC2 or Lambda assume a role to authenticate to Atlas without storing traditional credentials. section 20.2.1
  • Centralize permissions management and benefit from automatic key rotation, reducing credential exposure and operational complexity. section 20.2.1
  • Prefer IAM roles for cloud-native AWS applications; choose alternatives when existing LDAP, OIDC, OAuth 2.0, X.509, or Vault requirements govern authentication. section 20.2.3

AWS-hosted Atlas client

An application running on EC2 or Lambda assumes an IAM role and connects to Atlas through role-based authentication, avoiding embedded passwords or API keys while retaining centralized access control. section 20.2.1

How MongoDB 8.0 in Action, Third Edition covers it

How deep it goes
Explains role-based authentication, centralized permissions, automatic rotation, and reduced exposure without detailing policy syntax or connection commands.
Examples
Uses EC2 and Lambda as concrete AWS services that assume roles to connect securely to Atlas.
What you can do after
Operate/configure Atlas authentication for AWS services while avoiding traditional credentials and simplifying access management.
How it connects
Connects Atlas authentication with EC2, Lambda, cloud-native applications, credential management, and alternative identity systems.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of MongoDB 8.0 in Action, Third Edition. The section links point to the parts of the book it draws on.