Book Image

Ansible 2 Cloud Automation Cookbook

By : Patawari, Aggarwal
Book Image

Ansible 2 Cloud Automation Cookbook

By: Patawari, Aggarwal

Overview of this book

Ansible has a large collection of inbuilt modules to manage various cloud resources. The book begins with the concepts needed to safeguard your credentials and explain how you interact with cloud providers to manage resources. Each chapter begins with an introduction and prerequisites to use the right modules to manage a given cloud provider. Learn about Amazon Web Services, Google Cloud, Microsoft Azure, and other providers. Each chapter shows you how to create basic computing resources, which you can then use to deploy an application. Finally, you will be able to deploy a sample application to demonstrate various usage patterns and utilities of resources.
Table of Contents (11 chapters)

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...

  1. 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...