<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>IaC on Data Artisans</title><link>https://dataartisans.tech/tags/iac/</link><description>Recent content in IaC on Data Artisans</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 06 Nov 2023 00:00:00 +0000</lastBuildDate><atom:link href="https://dataartisans.tech/tags/iac/index.xml" rel="self" type="application/rss+xml"/><item><title>OpenTofu</title><link>https://dataartisans.tech/opentofu/</link><pubDate>Mon, 06 Nov 2023 00:00:00 +0000</pubDate><guid>https://dataartisans.tech/opentofu/</guid><description>&lt;h2 id="intro"&gt;Intro&lt;/h2&gt;
&lt;p&gt;Back in August &lt;a href="https://www.hashicorp.com/blog/hashicorp-adopts-business-source-license"&gt;HashiCorp switched Terraforms license&lt;/a&gt; from Mozilla Public License v2.0 (MPL 2.0) to a Business Source License. In response, the open source community has forked the last MPL release of Terraform to a new project named &lt;a href="https://opentofu.org/"&gt;OpenTofu&lt;/a&gt;. To understand their mission checkout the &lt;a href="https://opentofu.org/manifesto"&gt;The OpenTofu Manifesto&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id="current-state"&gt;Current State&lt;/h2&gt;
&lt;p&gt;&lt;a href="https://github.com/opentofu/opentofu/releases/tag/v1.6.0-alpha3"&gt;OpenTofu has an alpha release&lt;/a&gt; out if you want to take it for a test drive. I did so myself with a few sample projects and they all worked without any issues. Biggest difference so far is using &lt;code&gt;tofu apply&lt;/code&gt; instead of &lt;code&gt;terraform apply&lt;/code&gt; in the CLI.&lt;/p&gt;</description></item><item><title>Terraform Azure: Tests</title><link>https://dataartisans.tech/terraform-azure-tests/</link><pubDate>Sun, 22 Oct 2023 00:00:00 +0000</pubDate><guid>https://dataartisans.tech/terraform-azure-tests/</guid><description>&lt;h2 id="intro"&gt;Intro&lt;/h2&gt;
&lt;p&gt;With the exciting new announcement for &lt;a href="https://developer.hashicorp.com/terraform/language/tests"&gt;Terraform Tests&lt;/a&gt; I couldn&amp;rsquo;t help but take them for a test drive. For our use case we will build on a prior post &lt;a href="https://dataartisans.tech/terraform-azure-reusable-sql-database-configurations/"&gt;Terraform Azure: Reusable SQL Database Configurations&lt;/a&gt;. In the last post we created a module to deploy SQL Servers. Today we will add a new default prefix to SQL Server name and then build a test to check the name of the server.&lt;/p&gt;</description></item><item><title>Terraform Azure: Import SQL Database</title><link>https://dataartisans.tech/terraform-azure-import-sql-database/</link><pubDate>Wed, 15 Feb 2023 00:00:00 +0000</pubDate><guid>https://dataartisans.tech/terraform-azure-import-sql-database/</guid><description>&lt;h2 id="intro"&gt;&lt;strong&gt;Intro&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;In this post we will cover how to import an existing Azure SQL Database to Terraform. If the resource wasn’t originally created by Terraform you will need to import it before Terraform can manage it. This comes in handy when you have existing infrastructure and want to start using Terraform later on.&lt;/p&gt;
&lt;p&gt;For a video walkthrough check out my &lt;a href="https://youtu.be/y5tkKoGFXCk"&gt;YouTube video&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Here we will use the &lt;a href="https://developer.hashicorp.com/terraform/cli/import"&gt;standard import functionality&lt;/a&gt; provided by Terraform. There are other 3rd party tools you can use for this process as well. One of the most popular is &lt;a href="https://github.com/GoogleCloudPlatform/terraformer"&gt;Terraformer&lt;/a&gt;, I will cover how to use that in a later post.&lt;/p&gt;</description></item><item><title>Terraform Azure: Reusable SQL Database Configurations</title><link>https://dataartisans.tech/terraform-azure-reusable-sql-database-configurations/</link><pubDate>Sun, 29 Jan 2023 00:00:00 +0000</pubDate><guid>https://dataartisans.tech/terraform-azure-reusable-sql-database-configurations/</guid><description>&lt;h2 id="intro"&gt;&lt;strong&gt;Intro&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;In this post we are going to build on the previous post &lt;a href="https://dataartisans.tech/terraform-azure-sql-database/"&gt;Terraform Azure: SQL Database&lt;/a&gt;. We will cover how you can use Terraform to create multiple &lt;a href="https://azure.microsoft.com/en-us/products/azure-sql/database/"&gt;Azure SQL Databases&lt;/a&gt; with &lt;a href="https://developer.hashicorp.com/terraform/language/modules/develop"&gt;Terraform modules&lt;/a&gt;. We are going to turn the original Terraform into a module so we can create as many databases as we need with identical configurations. Another advantage here is maintenance, if a setting needs to be adjusted you can simply adjust the module and it will propagate to each resource using the module configuration.&lt;/p&gt;</description></item><item><title>Terraform Azure: SQL Server VM</title><link>https://dataartisans.tech/terraform-azure-sql-server-vm/</link><pubDate>Mon, 16 Jan 2023 00:00:00 +0000</pubDate><guid>https://dataartisans.tech/terraform-azure-sql-server-vm/</guid><description>&lt;h2 id="intro"&gt;&lt;strong&gt;Intro&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;In this post we are going to deploy a SQL Server VM in Azure. Deploying a VM requires a little more work than the &lt;a href="https://dataartisans.tech/terraform-azure-sql-database/"&gt;SQL Database we deployed in the last post&lt;/a&gt;. We will need to add some networking resources and configure the host VM. If you need help setting up Terraform please see my prior post, &lt;a href="http://terraform-azure-setting-up-your-environment"&gt;Terraform Azure: Setting Up Your Environment&lt;/a&gt;. This post assumes you have an Azure account. If you do not, you can &lt;a href="https://azure.microsoft.com/en-us/free/"&gt;create one for free&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Terraform Azure: SQL Database</title><link>https://dataartisans.tech/terraform-azure-sql-database/</link><pubDate>Sun, 15 Jan 2023 00:00:00 +0000</pubDate><guid>https://dataartisans.tech/terraform-azure-sql-database/</guid><description>&lt;h2 id="intro"&gt;&lt;strong&gt;Intro&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;In this post we are going to cover how you can use Terraform to create an &lt;a href="https://azure.microsoft.com/en-us/products/azure-sql/database/"&gt;Azure SQL Database&lt;/a&gt;. If you need help setting up Terraform please see my prior post, &lt;a href="https://dataartisans.tech/terraform-azure-setting-up-your-environment/"&gt;Terraform Azure: Setting Up Your Environment&lt;/a&gt;.This post assumes you have an Azure account. If you do not, you can &lt;a href="https://azure.microsoft.com/en-us/free/"&gt;create one for free&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;We will take a slow approach to accomplishing our task. The goal here is to get familiar with Terraform and its commands by creating some basic resources. Terraform also has some great resources for getting started &lt;a href="https://developer.hashicorp.com/terraform/tutorials/azure-get-started"&gt;here&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Terraform Azure: Setting Up Your Environment</title><link>https://dataartisans.tech/terraform-azure-setting-up-your-environment/</link><pubDate>Sat, 14 Jan 2023 00:00:00 +0000</pubDate><guid>https://dataartisans.tech/terraform-azure-setting-up-your-environment/</guid><description>&lt;p&gt;&lt;strong&gt;Intro&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;You want to start using Terraform to manage your Azure infrastructure. To get started you will need to get your local development environment setup. In this post I will walk you through setting up Terraform and the Azure CLI on Windows.&lt;/p&gt;
&lt;p&gt;For a video walkthrough check out my &lt;a href="https://www.youtube.com/watch?v=HFyi0ZnmAho"&gt;YouTube video&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;PowerShell&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I’m a huge fan of PowerShell so that is my preferred way to interact with Terraform. If you are using Windows you will already have a version of PowerShell available on your machine. I like to use the latest and greatest so I start by installing the latest version which as of this writing is 7.3.1. Download the package and install it, you&amp;rsquo;re done.&lt;/p&gt;</description></item></channel></rss>