IaC for Google Cloud Platform with Terraform

cyberforgeacademy 42 views 13 slides Sep 09, 2024
Slide 1
Slide 1 of 13
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13

About This Presentation

Learn to deploy a sample setup on GCP with Terraform


Slide Content

Terraform with GCP

Table of contents
01
04
02
05
03
06
Terraform Google Cloud
Platform
Terraform
Workflow
Syntax Scenario Demo

Terraform
●Open-source Infrastructure as code (IAC) Tool
●Developed by Hashicorp
●Written in HCL(HashiCorp Configuration Language)
●Automate and manage your
○infrastructure
○platform
○services
●Declarative : define what end result you want
●Website: www.terraform.io

Google Cloud Platform (GCP)
●Suite of cloud computing services provided by Google.
●Offers a wide range of services, including:
○Computing power
○Storage
○Databases
○Machine learning
○Networking
○And more
●Delivered over the internet
●Website : cloud.google.com

GCP Console

Terraform Workflow

Terraform Syntax

Terraform Commands
●terraform version – Displays the current version of Terraform

●terraform init – Initializes a Terraform working directory

●terraform plan – Generates and shows an execution plan,
detailing what actions will be taken

●terraform apply – Executes and apply the actions proposed in
the Terraform plan

●terraform destroy – Destroys the Terraform-managed
infrastructure

Scenario

Creating Instances Using
Terraform