Creating tailor-made instances using Deployment Manager
GCP provides various options to programmatically create resources needed for an application. The Cloud Deployment Manager provides a repeatable and testable method to specify all the resource needed for an application. The templates can be written in simple YAML files, Jinja templates, and Python templates. The template-driven approach allows us to parameterize and build resources with built-in logic. The templates can be treated as infrastructure as code.
Getting ready
The following are the initial setup verification and network creation steps before the recipe can be executed:
- Create or select a GCP project
- Enable billing and enable the default APIs (some APIs such as BigQuery, storage, and monitoring are enabled automatically)
How to do it...
Let's say that organization ABC has a standard practice to keep the application data stored in a non-boot disk and local databases saved in another separate non-boot disk. In this recipe, we'll create...