Book Image

Hybrid Cloud for Developers

By : Manoj Hirway
Book Image

Hybrid Cloud for Developers

By: Manoj Hirway

Overview of this book

This book introduces you to the hybrid cloud platform, and focuses on the AWS public cloud and OpenStack private cloud platforms. It provides a deep dive into the AWS and OpenStack cloud platform services that are essential for developing hybrid cloud applications. You will learn to develop applications on AWS and OpenStack platforms with ease by leveraging various cloud services and taking advantage of PaaS. The book provides you with the ability to leverage the ?exibility of choosing a cloud platform for migrating your existing resources to the cloud, as well as developing hybrid cloud applications that can migrate virtual machine instances from AWS to OpenStack and vice versa. You will also be able to build and test cloud applications without worrying about the system that your development environment supports. The book also provides an in-depth understanding of the best practices that are followed across the industry for developing cloud applications, as well as for adapting the hybrid cloud platform. Lastly, it also sheds light on various troubleshooting techniques for OpenStack and AWS cloud platform services that are consumed by hybrid cloud applications. By the end of this book, you will have a deep understanding of the hybrid cloud platform and will be able to develop robust, efficient, modular, scalable, and ?exible cloud applications.
Table of Contents (16 chapters)
Title Page
Dedication
Packt Upsell
Contributors
Preface
Index

Developing OpenStack Identity Service applications


In Chapter 2, Exploring AWS Cloud, we discussed the OpenStack Identity Service. The OpenStack Identity Service (Keystone) provides identity management and also manages and maintains the creation of users, projects, roles, and so on. This is one of the most important services that all OpenStack applications consume.

 User management

An OpenStack user is simply an entity that has an associated username and password along with certain roles that allow the user to perform certain actions on the OpenStack platform. An OpenStack user with administrative privileges is allowed to manipulate users.

Creating a user 

To create a new OpenStack user using the Python SDK, we first need to define the properties of the user. A Python dictionary is used to define the properties of the user. 

A new OpenStack user can be created by simply invoking the create_user() and passing the Python dictionary to the function:

def create_user(conn):
    user_parameters = {...