Member-only story
A Sample Application using Terraform on Google Cloud: Design and Implementation
How might you go about designing, building and deploying a repeatable full-stack application on Google Cloud, from scratch?
The answer: use infrastructure-as-code (IaC). Using IaC means that your entire deployment is:
- Defined in code.
- Stored in source control, so you have the history of all changes.
- Self-documenting — i.e. the IaC is itself the low-level design.
- Is declarative — i.e. you only define what you want to be deployed; you don’t care about how.
- Automated, fast and entirely repeatable.
- Idempotent — you can redeploy at any time, and get a predictable result.
- Completely automatable, i.e. as part of an automated pipeline.
Arguably the best tool for creating your IaC is Terraform. It can be used on any of the major public cloud providers, it is easy to use, and super easy to get started with.
A Sample End-to-End Case Study
I’ve built a dedicated documentation site to describe the design, build and implementation of a sample case study application. This…