Overview
Learn how to create a Virtual Machine in Google Cloud using Terraform in this comprehensive video tutorial. Discover the process of provisioning an application with cloud init scripts, leveraging data sources and variables for dynamic configuration, and utilizing outputs to retrieve details of created resources. Follow along as the instructor demonstrates adding providers, authenticating the Google Cloud Provider, creating Virtual Machine resources, and using data sources. Gain hands-on experience with Terraform commands such as init, plan, apply, and destroy. Explore advanced topics including Terraform functions, updating resources, and working with complex variables and conditional statements. By the end of this 1 hour 17 minute tutorial, you'll have a solid foundation in using Terraform with Google Cloud for infrastructure automation.
Syllabus
Intro
Adding Providers
Authenticating the Google Cloud Provider
Creating a Virtual Machine Resources
Using Data Sources
Terraform Init
Running Terraform Plan
Running Terraform Apply
Using Terraform Functions
Updating Resources
Outputs
Deleting Resources with Terraform Destroy
Provisioning Applications with Cloud Init
Making Configuration Dynamic With Variables
Complex Variables and Conditional Statements
Summary
Taught by
HashiCorp