Agents on laptops or on premises servers cannot use cloud metadata services to get credentials. IAM Roles Anywhere exchanges X.509 certificates for temporary AWS credentials, and managed identities cover Azure hosted compute. Choose the mechanism that avoids exporting long lived keys onto the machine.
Read in this order
- OfficialWhat is IAM Roles Anywhere?Start here: swap a certificate for temporary AWS credentials off-cloud.
- OfficialManaged identities for Azure resourcesThe Azure option for compute that already runs there.