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
