AWS identities are the principals that request access to AWS resources. Separate identities make activity attributable, permissions reviewable, and access revocable without sharing the account root credentials. For human workforce access, AWS generally recommends federation and temporary credentials rather than creating long-lived IAM users.
Before You Begin
- An AWS account where you have permission to administer IAM.
- A defined purpose for the identity and a list of AWS resources it must access.
- A second administrator or recovery path before changing account-wide access.
Recommended Approach
1. Choose the identity type
For a person, prefer your organization’s identity provider and IAM Identity Center or another supported federation path. For an application running on AWS, use an IAM role attached to the compute service. Create an IAM user only for a specific requirement that cannot be met with federation or a role.
2. Create the identity
In the AWS console, open IAM or IAM Identity Center, choose the appropriate identity workflow, and give the identity a descriptive, non-personal-purpose name such as billing-readonly or image-worker. Avoid names that imply broader access than the identity needs.
3. Grant least-privilege permissions
Start with the smallest set of actions and resources required. Prefer a narrowly scoped customer-managed policy or an appropriate managed policy as a temporary starting point. Avoid attaching AdministratorAccess to routine users or workloads.
4. Require strong authentication
Require MFA for human access. Use temporary credentials and short sessions where supported. Do not create access keys unless the use case specifically requires programmatic long-term credentials.
5. Test and document
Sign in or run the workload using the new identity, verify the intended actions succeed, and verify unrelated actions fail. Record the owner, purpose, permission boundary, and review date.
Operational Considerations
Treat identity and server controls as an ongoing operating process, not a one-time setup. Assign an owner to each identity or exposed service, review access after role changes, and remove temporary exceptions when their purpose ends. Keep a record of who approved the access and how it can be revoked. For production systems, pair preventive controls with centralized logs and alerts so unusual activity can be investigated promptly.
How to Verify the Result
Validate both the normal workflow and the failure path. Confirm the intended administrator or service can complete its task, then attempt the same action from an identity or source that should not be allowed. Review authentication and system logs for the test. Finally, verify that recovery access still works and that a configuration rollback is available before closing the change.
Example Configuration
Illustrative example — adapt values to your environment
[Replace with your organization’s identity workflow; do not paste credentials into scripts.]
Common Mistakes to Avoid
- Do not use the AWS account root user for everyday administration.
- Do not share one IAM user or access key among multiple people or applications.
- Do not assume that creating an identity automatically grants access; permissions and resource policies both matter.
Make one change at a time, test it from the perspective of the actual user or application, and record the reason for the change. Keep a rollback path for network, identity, and production configuration changes.
Final Checklist
- The configuration matches the intended environment and service version.
- Access is limited to the required identities, resources, ports, and operations.
- The expected workflow has been tested, including a negative test for unauthorized access.
- Secrets and temporary credentials are protected and excluded from logs and source control.
- The configuration owner, purpose, and review or expiration date are documented.