Preparing to work with Google Cloud Platform

Among various Google Cloud modules, a bunch of Python modules are required to make sure the Ansible modules work smoothly. These modules are as follows:

  • apache-libcloud
  • boto
  • google-api-python-client
  • google-auth
  • google-auth-httplib2

These libraries can be obtained by using Python's pip tool:

$ pip install apache-libcloud boto google-api-python-client google-auth google-auth-httplib2

Along with these libraries, we need to get credentials from Google Cloud. All of the modules, except for the one used for Google Cloud Storage, can use a service account credential JSON file. Service accounts are special accounts typically associated with a non-human entity like a server or an application. This account can be used by applications and servers to interact with various APIs provided by Google Cloud. The advantage of using Service Account is that it helps us to avoid embedding any user credentials in any way, improving security. Let us create a service account for Ansible modules.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset