Developers use scripts to automate mundane tasks and make implementations more efficient. Infrastructure as code is the most comprehensive option for scripting, because it creates an abstraction layer between applications and the underlying infrastructure to automate all operational tasks.
Google’s infrastructure-as-code tool, Google Cloud Deployment Manager, deploys infrastructure as repeatable, declarative code. It can use up to three file types per Google Cloud Platform deployment — a configuration file in YAML, a schema file and a template file in Python or Jinja2. The configuration file, which is the source code for Deployment Manager, is the only required file — the other two types are optional but improve a deployment’s portability.