Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Build and Test GCP Infrastructure Using Terraform Module

144 views

Published on

Build and Test GCP Infrastructure Using Terraform Module talk at Cloud Native London Meetup

Published in: Software
  • Be the first to comment

  • Be the first to like this

Build and Test GCP Infrastructure Using Terraform Module

  1. 1. 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. 2. About Me IT Consultant with 8+ years of experience. Expertise ● Big Data ● Cloud (GCP & AWS) ● DevOps Blog: pbhadani.com Cloud Native Technologies
  3. 3. Services ● Big Data Consultancy ● Cloud Consultancy ● Tailored Training and Workshops Cloud Native Technologies
  4. 4. Agenda ● Terraform Introduction ● Terraform Modules ● Testing Cloud Native Technologies
  5. 5. Terraform Terraform allows to build, change and version our infrastructure in an easy and efficient way. terraform.io Cloud Native Technologies
  6. 6. Terraform Lifecycle Cloud Native Technologies Init terraform init Plan terraform plan Apply terraform apply Destroy terraform destroy
  7. 7. Infrastructure Architecture Cloud Native Technologies dev
  8. 8. Code Cloud Native Technologies
  9. 9. Problem Cloud Native Technologies dev test prod
  10. 10. Problem Cloud Native Technologies dev1 dev2 dev3
  11. 11. 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
  12. 12. Code Cloud Native Technologies main.tf
  13. 13. Code Cloud Native Technologies main.tf
  14. 14. Code Cloud Native Technologies main.tf
  15. 15. Multiple Infrastructure Instances Cloud Native Technologies main.tf
  16. 16. Terraform Module: Code Structure Cloud Native Technologies https://github.com/CloudNativeTech/terraform-module-gcs
  17. 17. 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. 18. Terraform Registry Cloud Native Technologies registry.terraform.io
  19. 19. Cloud Infrastructure Cloud Native Technologies Compute Network Bucket GKE Bigquery Datastore Project IAMGoogle Cloud Platform GCP Project GCP Project Network BigQuery Compute App
  20. 20. ● 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
  21. 21. Terraform Module: Test Structure Cloud Native Technologies
  22. 22. Kitchen Lifecycle Cloud Native Technologies Create kitchen create Converge kitchen converge Verify kitchen verify Destroy kitchen destroy
  23. 23. Source Code github.com/CloudNativeTech/terraform-module-gcs Photo by Chris Ried on Unsplash
  24. 24. pbhadani.com linkedin.com/in/pradeepbhadani github.com/pradeepbhadani twitter.com/bhadanipradeep stackoverflow.com/users/1158351 Image by TeroVesalainen from Pixabay
  25. 25. pbhadani.com linkedin.com/in/pradeepbhadani github.com/pradeepbhadani twitter.com/bhadanipradeep stackoverflow.com/users/1158351

×