<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Marcos Jacinto on Medium]]></title>
        <description><![CDATA[Stories by Marcos Jacinto on Medium]]></description>
        <link>https://medium.com/@marcos.gomesjacinto?source=rss-a307c022ef58------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*Ux6b_g0SIvTKzxE6fGYjjw.png</url>
            <title>Stories by Marcos Jacinto on Medium</title>
            <link>https://medium.com/@marcos.gomesjacinto?source=rss-a307c022ef58------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 04:43:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@marcos.gomesjacinto/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Terraform 101: The beginner’s guide to the most powerful IaC tool]]></title>
            <link>https://medium.com/@marcos.gomesjacinto/terraform-101-the-beginners-guide-to-the-most-powerful-iac-tool-acb908340a5?source=rss-a307c022ef58------2</link>
            <guid isPermaLink="false">https://medium.com/p/acb908340a5</guid>
            <category><![CDATA[iac]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Marcos Jacinto]]></dc:creator>
            <pubDate>Fri, 09 Dec 2022 19:21:10 GMT</pubDate>
            <atom:updated>2022-12-12T18:40:07.742Z</atom:updated>
            <content:encoded><![CDATA[<h3>Terraform 101: the beginner’s guide to the most powerful IaC tool</h3><p><strong>Introduction</strong></p><p>As someone who has been working with cloud computing for almost a year, I have found that Terraform is a powerful tool for addressing many of the challenges that I have encountered. Terraform allows you to define your infrastructure as code (IaC), using a simple, declarative language. With Terraform, I have been able to find solutions to many of the challenges I have faced and improve the efficiency and reliability of my infrastructure management. In this blog post, I will share part of my experiences with Terraform and the benefits of using IaC.</p><p>Terraform is a powerful tool for building, changing, and managing infrastructure, safely and efficiently. With Terraform, you can define your infrastructure as code, using a simple, declarative language. This means that you can version your infrastructure, collaborate with your team, and automate your deployments, all with ease.</p><p><strong>What is Terraform?</strong></p><p>Terraform is a tool for managing infrastructure as code. This means that instead of manually configuring your infrastructure using a web interface, a command-line interface, or other tools, you can write code that describes your desired infrastructure, and then use Terraform to automatically create, update, and manage that infrastructure.</p><p>The benefits of Terraform are numerous. By defining your infrastructure as code, you can version your infrastructure, collaborate with your team, and automate your deployments, all with ease. You can also use Terraform to manage infrastructure across multiple cloud providers and on-premises environments, allowing you to take advantage of the best features and services from each provider. And with a growing ecosystem of providers, modules, and tooling, you can use Terraform to manage almost any type of infrastructure, from simple websites to complex, multi-cloud architectures.</p><p>Another advantage of Terraform is that it uses a declarative approach to infrastructure management. This means that you define the desired state of your infrastructure resources in your Terraform code, and Terraform will automatically provision and manage those resources to ensure that they match your desired state. This makes it easy to automate and manage your infrastructure, and also enables you to version and track changes to your infrastructure over time.</p><p><strong>Creating a virtual machine in Google Cloud with Terraform</strong></p><p>To see the power of Terraform in action, let’s look at how to use it to create a virtual machine in Google Cloud. First, you will need to install Terraform and authenticate with Google Cloud, following the instructions in the Terraform documentation. Then, you can create a file called main.tf with the following contents:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*58Jlb9vtd3Iv-wUEIGugmQ.png" /><figcaption>Contents of main.tf necessary to create a virtual machine in Google Cloud.</figcaption></figure><p>This script uses the google provider to specify the project and region where the virtual machine will be created. It then defines a google_compute_instance resource, which represents the virtual machine itself. The name, machine_type, and zone properties specify the name, type, and location of the virtual machine. The boot_disk and network_interface blocks specify the operating system image and network settings for the virtual machine.</p><p>To use this script, you would need to install Terraform and authenticate with Google Cloud, and then you could run the terraform apply command to create the virtual machine.</p><p>You can also include a path to the credential file inside the block provider, like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UrsguPh8vCkQGvg6kdSIFA.png" /></figure><p>After running terraform apply, you can run the terraform destroy command to destroy the infrastructure that was created by Terraform. This will remove any resources that were created as part of your infrastructure, allowing you to clean up and remove any unwanted resources. It is important to use this command carefully, as it can permanently delete important resources. Before running terraform destroy, it is recommended to review the plan output and make sure that the resources that will be destroyed are the ones you intend to remove.</p><p><strong>Final Remarks</strong></p><p>This script is just a simple example, and you can use Terraform to manage many more types of resources in Google Cloud, as well as in other cloud providers.</p><p>In short, if you’re looking to improve your infrastructure management, Terraform is the way to go. Try it out and see the power of infrastructure as code for yourself!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=acb908340a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>