liveBook · Manning

Authentication

As explained in Amazon Web Services in Action, Third Edition: An in-depth guide to AWS

Authentication is the process of verifying the identity of a user, resource, or other entity requesting access.

Authentication verifies the identity of a user, workload, resource, or other entity requesting access. Authorization is separate: it determines what that authenticated identity may do. In AWS, IAM performs both checks for requests to the AWS API. section 5.3.2 section 5.6

AWS uses different identities for different kinds of callers:

  • IAM users authenticate people or workloads operating outside AWS, using a username and password for the Management Console or access keys for the CLI. section 5.3.2 section 5.3.4
  • IAM roles authenticate AWS resources such as EC2 instances; roles do not use passwords or access keys in the same way IAM users do. section 5.3.2 section 5.3.2
  • IAM groups organize users and centralize authorization, but groups cannot authenticate. section 5.3.4
  • Identity policies define the actions allowed for users, groups, or roles; identities have no permissions by default. section 5.3.2

Protect credentials with multifactor authentication, especially for administrator access. Prefer named IAM users over continued root-user use, give each person only the permissions needed for the role, and enable MFA for all users. section 5.3 section 5.3.4

Create an IAM administrator

A minimal CLI sequence creates an admin group, attaches AdministratorAccess, creates myuser, adds the user to the group, and creates a console login profile. Replace the password placeholder with a secure password, then enable MFA and stop using the root user. section 5.3.4

Authentication boundaries also apply to managed data services. IAM controls who may administer an ElastiCache cluster, while network security groups control node access and the cache engine controls access inside the cache. Redis versions above 6.0 support token authentication and RBAC; Memcached does not provide user authentication. Enable encryption in transit when transmitting authentication secrets. section 11.3 section 11.3.3

How Amazon Web Services in Action, Third Edition: An in-depth guide to AWS covers it

How deep it goes
Explains users, roles, groups, policies, credentials, MFA, and cache authentication, but stops short of detailed policy syntax.
Examples
Uses AWS root and IAM users, CLI access keys, EC2 roles, MFA setup, and Redis token-based or RBAC authentication.
What it assumes
Assumes an AWS account and distinguishes Management Console passwords from CLI access keys.
What you can do after
Operate/configure AWS identities, credentials, MFA, policies, and cache authentication boundaries.
How it connects
Connects authentication with authorization, IAM, identity policies, MFA, security groups, encryption, and role-based access control.

Also explained in

Compare how 34 books explain authentication →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Amazon Web Services in Action, Third Edition: An in-depth guide to AWS. The section links point to the parts of the book it draws on.