Managing IAM users
AWS Identity and Access Management(IAM) enables the AWS administrator to control access across AWS resources in a more efficient and managed manner. IAM allows us to create multiple users in an AWS account with different access levels and privileges. IAM users can be allowed to access AWS through the web console and API. In this recipe, we will be creating IAM users and attaching policies that define access for those users. We will also create IAM roles that can be applied to various AWS services, such as Lambda, EC2, and so on.
How to do it...
- We will be using the IAM module to create IAM users. In the following task, we will be creating an IAM user. We will also set a password for the user being created. We will be storing this information in our secrets.yml, which is protected by Ansible Vault. We have discussed Ansible vault in the Chapter 1, Getting Started with Ansible and Cloud Management, and in Chapter 2, Using Ansible to Manage AWS EC2:
- name: Create IAM users...