Build and Test GCP Infrastructure Using Terraform Module1. Build and Test GCP Infrastructure
Using Terraform Module
Pradeep Bhadani
Founder, Cloud Native Technologies
https://cntek.io
https://pbhadani.com
https://linkedin.com/in/pradeepbhadani
2. About Me
IT Consultant with 8+ years of experience.
Expertise
● Big Data
● Cloud (GCP & AWS)
● DevOps
Blog: pbhadani.com
Cloud Native Technologies
10. Terraform Modules
● Collection of different Terraform resources
● Allows to describe infrastructure architecture/blueprints
○ Easy to understand infrastructure
● Re-usable - helps to avoid code duplication
● Collaborative development
● Helps to get started quickly
● Versioning
Cloud Native Technologies
11. Terraform Module: Code Structure
Cloud Native Technologies
https://github.com/CloudNativeTech/terraform-module-gcs
16. Module Sources
● Local Path
● Github
● Bitbucket
● Terraform Registry
● HTTP URLs
● S3 Bucket
● GCS Bucket
Reference: https://www.terraform.io/docs/modules/sources.html
Cloud Native Technologies
18. Cloud Infrastructure
Cloud Native Technologies
Compute Network
Bucket GKE
Bigquery Datastore
Project IAMGoogle Cloud Platform
GCP Project GCP Project
Network BigQuery
Compute
App
19. ● Test Kitchen: https://github.com/test-kitchen/test-kitchen
● Kitchen-Terraform: https://newcontext-oss.github.io/kitchen-terraform/
● Inspec GCP: https://github.com/inspec/inspec-gcp
Testing
Cloud Native Technologies