Skip to content

Cloud Infrastructure Automation with Terraform. We are creating 2 virtual machines, 26 subnets in 2 separate regions and firewall rules using Terraform.

Notifications You must be signed in to change notification settings

peacerebecca/Automating-workflow--terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automating our Workflows with Terraform. In this lab, we shall create vitual private cloud networks, subnets and virtual machines automatically using Terraform.

Prerequisites Google Cloud Account and Project Google Cloud Credits - https://trygcp.dev/e/build-ai-NA01

Step 1: Create a folder of your choice using mkdir foldername for the Terraform configuration Using the editor, Create a new folder inside the created folder and name it provider.tf add: provider "google" {}

In the terminal, change directory to your foldername and innitialize terraform example cd devfestKigali terraform init

Step 2: Create the auto mode network along with its firewall rule and two VM instances (office_vm_1 and office_vm_2). Create a new file called mynetwork.tf

Step 3: Create a new folder under the parent folder and name it instance
Add a new file named main.tf Add a new file named variables

About

Cloud Infrastructure Automation with Terraform. We are creating 2 virtual machines, 26 subnets in 2 separate regions and firewall rules using Terraform.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages