Skip to main content

AWS IAM: How to Master Amazon Authentication in 5 Steps

The AWS IAM service lets you control access to your Amazon resources

Here are the five things you should know

In 2015, Gartner named Amazon Web Services as the leader in cloud Infrastructure as a Service (IAAS). Why? Because AWS services are highly scalable, elastic, available truly on-demand, reasonably priced, and accessible by customers using a web-based UI, APIs, and CLI automation. More importantly: AWS leads the way in providing security to end users. And which service lies at the very center of Amazon security?

AWS IAM (Identity and Access Management).

AWS IAM

Using IAM, you can create users, groups, and roles to which you can apply permissions to allow and deny their access to AWS resources such as EC2, RDS, and VPC. IAM lets you grant unique credentials to every user within your AWS account, allowing access only to the AWS services and resources required.

Let’s explore five tools you should use to make the most of everything that IAM has to offer:

1. Simulate your settings using the AWS IAM Policy Simulator

In order to intelligently assign permissions to users, group, and resources, you create policy documents in JSON format specifying the precise access needed. But without properly testing your policies, it’s difficult to be sure that your application and services will behave exactly the way you want. AWS allows you to safely simulate your configuration so you can test and validate your policies.

You can test existing and new policies attached to IAM users, groups, or roles in your AWS account, simulate real-world scenarios by providing condition keys such as IP address or dates, and test your policies against selected services and selected actions. For example, you can test your policy to ensure that it allows a user to launch or stop an instance, but not terminate instances.

AWS IAM policy simulator

2. Know when your AWS IAM access key was last used

Access keys consist of an access id and secret access key. You need these keys when you want to access AWS services using an API, command line or SDK. In the AWS IAM console, you can see when these keys were last used. AWS will show you timestamps, regions and the AWS services that were accessed:

AWS IAM console password last used

AWS IAM console also displays the date and time when an IAM user or root account last accessed the AWS Management Console, forums, Support Center, or Marketplace. Finally, you can Download an access key’s “last used” report for your entire account:

AWS IAM console security credentials

3. AWS IAM Managed Policies

Managed policies allow you to attach a single access control policy to multiple entities (IAM users, groups, and roles). You can create administrators with limited authority in order to precisely delegate management responsibilities. These administrators might, for instance, have the ability to create users, groups, and roles, but could only grant access using a restricted set of managed policies.

4. Autoformat and review your policy error

You can enable autoformatting for your JSON policies. Navigate to any policy editing page and make sure that the “Use autoformatting for policy editing” check-box is selected. When you then click the Validate Policy button, your policy formatting will be checked, displaying error messages identifying the line number where a JSON error occurs.

5.Cross-Account Access

Suppose you use separate AWS accounts for Development and Productions environments. If you need to give access to users or roles in one account to an S3 bucket or Ec2 instances in the other, Cross Account Access can do it. You establish trust between AWS accounts by creating a new IAM role, and modifying an attached IAM policy by adding the customer account number of the client resource.

Conclusion

Besides other IAM best practices available in the official AWS documentation, you can also find more on IAM in Cloud Academy’s Introduction to IAM course, and in this AWS IAM: user access control and user management post.

Avatar

Written by

Nitheesh Poojary

My professional IT career began nine years back when I was just out of my college. I worked with a great team as an infrastructure management engineer, managing hundreds of enterprise application servers. I found my passion when I got the opportunity to work with Cloud technologies: I'm addicted to AWS Cloud Services, DevOps engineering, and all the cloud tools and technologies that make engineers' lives easier. Currently, I am working as a Solution Architect in SixNines IT. We are an experienced team of engineers that have helped hundreds of customers move to the cloud responsibly. I have achieved 5 AWS certifications, happily helping fellow engineers across the globe through my blogs and answering questions in various forums.

Related Posts

Avatar
Stuart Scott
— July 18, 2019

AWS Fundamentals: Understanding Compute, Storage, Database, Networking & Security

If you are just starting out on your journey toward mastering AWS cloud computing, then your first stop should be to understand the AWS fundamentals. This will enable you to get a solid foundation to then expand your knowledge across the entire AWS service catalog.   It can be both d...

Read more
  • AWS
  • Compute
  • Database
  • fundamentals
  • networking
  • Security
  • Storage
Avatar
Adam Hawkins
— July 17, 2019

How to Become a DevOps Engineer

The DevOps Handbook introduces DevOps as a framework for improving the process for converting a business hypothesis into a technology-enabled service that delivers value to the customer. This process is called the value stream. Accelerate finds that applying DevOps principles of flow, f...

Read more
  • AWS
  • AWS Certifications
  • DevOps
  • DevOps Foundation Certification
  • Engineer
  • Kubernetes
Avatar
Stuart Scott
— July 2, 2019

AWS Machine Learning Services

The speed at which machine learning (ML) is evolving within the cloud industry is exponentially growing, and public cloud providers such as AWS are releasing more and more services and feature updates to run in parallel with the trend and demand of this technology within organizations t...

Read more
  • Amazon Machine Learning
  • AWS
  • AWS re:Invent
  • Machine Learning
Avatar
Stuart Scott
— June 27, 2019

AWS Control Tower & VPC Traffic Mirroring

AWS re:Inforce 2019 is a two-day conference for security, identity, and compliance learning and community building. This year's keynote, presented by AWS Vice President and CIO, Stephen Schmidt, announced the general availability of AWS Control Tower and the new VPC Traffic Mirroring fe...

Read more
  • AWS
  • re:Inforce 2019
  • traffic mirroring
  • VPC
Avatar
Stuart Scott
— June 20, 2019

Working with AWS Networking & Amazon VPC

Being able to architect your own isolated segment of AWS is a simple process using VPCs; understanding how to architect its related networking components and connectivity architecture is key to making it a powerful service. Many services within Amazon Web Services (AWS) require you t...

Read more
  • AWS
  • VPC
Avatar
Stuart Scott
— June 19, 2019

AWS Compute Fundamentals Update

AWS is renowned for the rate at which it reinvents, revolutionizes, and meets customer demands and expectations through its continuous cycle of feature and service updates. With hundreds of updates a month, it can be difficult to stay on top of all the changes made available.   Here ...

Read more
  • AWS
Jeff Hyatt
Jeff Hyatt
— June 18, 2019

10 Steps for an Effective Reserved Instances Strategy

Amazon Web Services (AWS) offers three different ways to pay for EC2 Instances: On-Demand, Reserved Instances, and Spot Instances. This article will focus on effective strategies for purchasing Reserved Instances. While most of the major cloud platforms offer pre-pay and reservation dis...

Read more
  • AWS
  • EC2
Joe Nemer
Joe Nemer
— June 18, 2019

AWS Certification Practice Exam: What to Expect from Test Questions

If you’re building applications on the AWS cloud or looking to get started in cloud computing, certification is a way to build deep knowledge in key services unique to the AWS platform. AWS currently offers 11 certifications that cover major cloud roles including Solutions Architect, De...

Read more
  • AWS
  • AWS Certifications
Avatar
John Chell
— June 13, 2019

AWS Certified Solutions Architect Associate: A Study Guide

The AWS Solutions Architect - Associate Certification (or Sol Arch Associate for short) offers some clear benefits: Increases marketability to employers Provides solid credentials in a growing industry (with projected growth of as much as 70 percent in five years) Market anal...

Read more
  • AWS
  • AWS Certifications
Chris Gambino and Joe Niemiec
Chris Gambino and Joe Niemiec
— June 11, 2019

Moving Data to S3 with Apache NiFi

Moving data to the cloud is one of the cornerstones of any cloud migration. Apache NiFi is an open source tool that enables you to easily move and process data using a graphical user interface (GUI).  In this blog post, we will examine a simple way to move data to the cloud using NiFi c...

Read more
  • AWS
  • S3
Avatar
Chandan Patra
— June 11, 2019

Amazon DynamoDB: 10 Things You Should Know

Amazon DynamoDB is a managed NoSQL service with strong consistency and predictable performance that shields users from the complexities of manual setup. Whether or not you've actually used a NoSQL data store yourself, it's probably a good idea to make sure you fully understand the key ...

Read more
  • AWS
  • DynamoDB
Avatar
Andrew Larkin
— June 6, 2019

The 11 AWS Certifications: Which is Right for You and Your Team?

As companies increasingly shift workloads to the public cloud, cloud computing has moved from a nice-to-have to a core competency in the enterprise. This shift requires a new set of skills to design, deploy, and manage applications in cloud computing. As the market leader and most ma...

Read more
  • AWS
  • AWS Certifications