You will learn about Terraform and how it’s used as infrastructure as a code.
The greatest advantage of using Terraform is that it supports various cloud providers like AWS, Microsoft Azure, Google Cloud, Openstack etc and it is open source.
Terraform File:
===========
provider “google” {
version = “3.5.0”
credentials = file(“tfsvc.json”)
project = “youtube-demo-255723”
region = “us-central1”
zone = “us-central1-c”
}
resource “google_compute_instance” “appserver” {
name = “secondary-application-server”
machine_type = “f1-micro”
boot_disk {
initialize_params {
image = “debian-cloud/debian-9”
}
}
network_interface {
network = “default”
}
}
Important links:
=============
https://www.terraform.io/docs/providers/google/index.html
https://cloud.google.com/community/tutorials/managing-gcp-projects-with-terraform
———-
PLEASE SUBSCRIBE ➡️https://bit.ly/36x6qQy ❤️
If you like my work considering buying me a COFFEE: https://bit.ly/3lumyqx
———-
PLAYLISTS:
– Associate Cloud Engineer Study Guide: https://bit.ly/37y1dYl
– Google Cloud Playlist: https://bit.ly/37uMZal
———-
– Questions? Thoughts? Disagreements? Tell us here in the comments.
———-
LETS CONNECT:
👍 Facebook: https://www.facebook.com/multicloudguy
📸 Instagram – https://instagram.com/multicloudguy
🐦 Twitter – https://twitter.com/multicloudguy
source
Ansible can be an alternative for terraform .. It's more mature
Thanks GK. Your video helped me solve my doubt. I was running Terraform in Ubuntu over Windows. Google Cloud in Chrome browser. Service account was downloaded in local path. But then wondered how the service account (tfsvc.json) was visible in Ubuntu machine. Workarrond I applied was manually copied the json file and placed in Ubuntu and then all other Terraform commsnds were successfull.
Cloud deployment Manager
Google cloud deployment manager
I am unable to connect gcp got an error
Answer: Deployment Manager 👍
So easily put and so well explained. Big Thanks :))
nicely & clearly explained man, thanks so much for sharing! Helped me sort out a small GCP (newbie) issue.
Thanks again wonderful video – deployment Manger is equivalent product in GCP
answer to your question, I think AWS cloud formation and Ansible are alternatives to Terraform ? Let me know if they are comparable or not
Google deployment manager!! the alternative for terraform
What advantage does it hold over the console operation ? Isn't creating resources with console would be easy task ?
as i am in cloud security domain ,Is it necessary to learn terraform?
Deployment manager
You have a knack to explain it in simple language. Well done.
Nice walkthrough! Subscribed!!
Google Cloud Deployment Manager
Hai bro I need ur help
Correct me if am wrong
Thank you GK
Answer to the question in this video Ansible
Hiya! Love your videos, very informative! Do you know how to obtain text from a file inside a gcp instance created with terraform and use that as a variable in the main terraform file? Any advice would be appreciated 🙂 Thanks
Hi, nice video I would like to know if I want to load data from oracle into my gcp using terraform, could you able to guide the higher level steps.thanks in advance
While creating Google instance through terraform I am getting below error│ 7: resource "google_compute_instance_iam_member" "default" {
Can you please help
Hi, I was going through your video on GCP terraform. The video content is very useful for freshers. I followed your video to create the virtual machine. It's throwing an error too. Like "An argument or block definition is required here" this is the error. Can you please explain it from end to end?
Deployment Manager is an alternative of terraform in GCP.
Nice video. Thanks GK.
Wondering whether you are using Ubuntu on WSL or a full blown Ubuntu VM