Complementing Google Cloud Platform with automation
Another global cloud provider is Google, with its GCP. Google’s approach to the cloud is different from other providers’ since Google does not try to simulate the data center in a virtual environment. This is because Google wants to rethink the concept of cloud provision in order to simplify it.
Installation
You need to ensure that you have the proper components installed before you can start using GCP with Ansible. More specifically, you will require the Python requests
and google-auth
modules. To install these modules, run the following command:
$ pip install requests google-auth
We can now proceed to install the Google Cloud collection:
$ ansible-galaxy collection install google.cloud
Now that you have all the dependencies present, you can start the authentication process.
Authentication
There are three different approaches to obtaining a working set of credentials in GCP:
- The service...