{"id":17172,"date":"2023-09-01T19:58:22","date_gmt":"2023-09-01T19:58:22","guid":{"rendered":"http:\/\/64f237939b893e001b9f9741"},"modified":"2025-01-07T04:44:54","modified_gmt":"2025-01-07T03:44:54","slug":"introduction-to-terraform","status":"publish","type":"post","link":"https:\/\/dassiorleando.com\/fr\/introduction-to-terraform\/","title":{"rendered":"Introduction to Terraform"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"what-is-terraform\">What is Terraform?<\/h2>\n\n\n\n<p><a href=\"https:\/\/developer.hashicorp.com\/terraform\" rel=\"nofollow\">Terraform<\/a> is widely defined as a cloud-agnostic tool used to deploy resources no matter the provider involved, but it&#8217;s more than that since it works on-premises as well, and a provider can be anything else than cloud environments, like Kubernetes clusters and Docker instances can be automated as well. Terraform is an <strong>Infrastructure as Code (IaC)<\/strong> tool that allows you to automatically create and manage resources for anything that has an accessible API defined as a provider.<\/p>\n\n\n\n<p>The sample code at the end covers the creation of an <strong>EC2 instance on AWS<\/strong> associated with a <strong>security group<\/strong> with <strong>Nginx<\/strong> installed and serving on port <strong>80<\/strong>.<\/p>\n\n\n\n<p>Do you prefer the Video format instead? Feel free to watch it by following this <a href=\"https:\/\/youtu.be\/tJ6L1332WU4\" rel=\"nofollow\">link<\/a>:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Introduction to Terraform for Infrastructure Provisioning\" width=\"960\" height=\"540\" src=\"https:\/\/www.youtube.com\/embed\/tJ6L1332WU4?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>The&nbsp;<strong>YouTube Channels<\/strong>&nbsp;in both English (En) and French (Fr) are now accessible, feel free to subscribe by clicking&nbsp;<a href=\"https:\/\/www.youtube.com\/@numericaideas\/channels?sub_confirmation=1\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/p>\n<\/blockquote>\n\n\n<div class=\"vlp-link-container vlp-layout-basic wp-block-visual-link-preview-link\"><a href=\"https:\/\/www.youtube.com\/@numericaideas\/channels?sub_confirmation=1\" class=\"vlp-link\" title=\"Numerica Ideas\" rel=\"nofollow\" target=\"_blank\"><\/a><div class=\"vlp-layout-zone-side\"><div class=\"vlp-block-2 vlp-link-image\"><img decoding=\"async\" src=\"https:\/\/yt3.googleusercontent.com\/klwPa3fnccvxnvUjmfGmcdJDeX8J7BMbRraxiH69WeLx6qr3fQdxYSGN37vKE4jBCqGX5pZCgQ=s900-c-k-c0x00ffffff-no-rj\" style=\"max-width: 150px; max-height: 150px\" \/><\/div><\/div><div class=\"vlp-layout-zone-main\"><div class=\"vlp-block-0 vlp-link-title\">Numerica Ideas<\/div><div class=\"vlp-block-1 vlp-link-summary\">NumericaIdeas is a technical community that creates opportunities for IT professionals, where you\u2019ll secure your dream job, and indeed the group through which you can develop your hard and soft skills at your own pace. Our motto is \u201cDiscover, Learn, Build, &amp; Share\u201d \ud83d\ude80 \ud83d\udca1 La cha\u00eene est aussi disponi\u2026<\/div><\/div><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"terraform-concepts\">Terraform Concepts<\/h2>\n\n\n\n<p>Now that we have a minimal understanding of what Terraform is, let\u2019s emphasize some general concepts by using a high-level overview as illustrated in the following diagram:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/assets.numericaideas.com\/2023\/09\/TerraformWorkflow.png\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Terraform concepts<\/figcaption><\/figure>\n\n\n\n<p>The main concepts to grab about Terraform are HCL, Backend, Provider, Resources, Input variables, and Outputs.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"hcl\">HCL<\/h3>\n\n\n\n<p>At the core of Terraform, we have HCL, which is the declarative configuration language that you as a developer have to use to specify your infrastructure, it stands for&nbsp;<strong>Hashicorp Configuration Language<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"provider\">Provider<\/h3>\n\n\n\n<p>The provider is one of the most important parts of your Terraform configurations since it specifies the place where you would like your resources to be created. A few well-known providers are Amazon Web Services (AWS), Microsoft Azure, Google Cloud Platform (GCP), Kubernetes, Docker &#8230; and so on.<\/p>\n\n\n\n<p>The official list of recommended providers is available within the&nbsp;<a href=\"https:\/\/registry.terraform.io\/\">Terraform Registry<\/a>, even though it&#8217;s possible to have providers accessible in custom-made registries.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/assets.numericaideas.com\/2023\/09\/terraform-registry.png\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Terraform registry<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"resources\">Resources<\/h3>\n\n\n\n<p>Resources are anything that we create on the provider side, e.g.: a server instance or a network component.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"input-variables\">Input variables<\/h3>\n\n\n\n<p>Simply put, variables are a way to make your configurations more dynamic and flexible, with a simple change you can easily switch the region to deploy your resources to, or even easily change the type of instance you would like to create (from t2.micro to t3.medium). Generally defined in a file called&nbsp;<code>variables<\/code>&nbsp;with a tf extension.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"outputs\">Outputs<\/h3>\n\n\n\n<p>Since Terraform used the providers\u2019 APIs, at the end of the automation, each resource sent back a response that generally gives more information about the resources we just updated\/created, this information is called Outputs. Generally defined in a file called&nbsp;<code>outputs.tf<\/code>, these are printed on the screen once you run your IaC code, unless you defined them as sensitive.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"backend\">Backend<\/h3>\n\n\n\n<p>While automating your infrastructure, Terraform keeps a state of your resources in a location called the backend, it can be a Git repository, Terraform Cloud service, or an Object Storage like S3. If you don&#8217;t specify the Backend configurations, your IaC state will be saved on the host machine where Terraform is being run.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"setup-terraform-cli-and-vscode\">Setup: Terraform CLI and VSCode<\/h2>\n\n\n\n<p>Before moving to the commands section, it\u2019s important to have the correct setup on our computer so that we\u2019ll be ready to go.<\/p>\n\n\n\n<p>Setting up Terraform is about having&nbsp;<strong>Terraform CLI<\/strong>&nbsp;installed on the environment you would like to use it from, in my case, it\u2019s on my personal computer, which I believe is for you as well if you are about to play with it and learn at the same time.<\/p>\n\n\n\n<p>The main page to land on is the&nbsp;<a href=\"https:\/\/developer.hashicorp.com\/terraform\/downloads\">download page<\/a>&nbsp;available on the Terraform website. From that page, you have to click on the tab that corresponds to your operating system, mine is MacOS so I simply had to hit these two brew commands:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/assets.numericaideas.com\/2023\/09\/download-terraform.png\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Terraform download page<\/figcaption><\/figure>\n\n\n\n<p>To make it even easier, I recommend using the&nbsp;<strong>Visual Studio Code<\/strong>&nbsp;editor along with the&nbsp;<a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=HashiCorp.terraform\">Terraform extension<\/a>&nbsp;to write your configurations, this extension is a great tool since it enables&nbsp;<strong>syntax highlighting<\/strong>,&nbsp;<strong>auto-completion<\/strong>,&nbsp;<strong>code formatting<\/strong>,&nbsp;<strong>syntax validation<\/strong>,&nbsp;<strong>code navigation,<\/strong>&nbsp;and&nbsp;<strong>Terraform Cloud Integration<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"terraform-commands\">Terraform Commands<\/h2>\n\n\n\n<p>Using Terraform daily can&#8217;t be achieved without the following common&nbsp;<strong>Terraform commands<\/strong>&nbsp;which are demoed in this&nbsp;<a href=\"https:\/\/youtu.be\/tJ6L1332WU4?si=nXyQIPE98dZjjpxc&amp;t=494\">YouTube video<\/a>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>terraform init<\/code>: initializes the project by downloading the required local data, modules, providers, and the state file to be used by the actual project.<\/li>\n\n\n\n<li><code>terraform fmt<\/code>: fix the code formatting for the configuration files.<\/li>\n\n\n\n<li><code>terraform version<\/code>: gets the installed Terraform version.<\/li>\n\n\n\n<li><code>terraform validate<\/code>: syntax validation for error checking.<\/li>\n\n\n\n<li><code>terraform plan<\/code>: generates an execution plan corresponding to your configurations (.tf files) changes.<\/li>\n\n\n\n<li><code>terraform apply<\/code>: generates an execution plan and applies it once approved, the&nbsp;<code>-auto-approve<\/code>&nbsp;flag could be used to skip the prompt question.<\/li>\n\n\n\n<li><code>terraform destroy<\/code>: destroys previously-created infrastructure, it\u2019s an alias for \u201cterraform apply -destroy\u201d.<\/li>\n\n\n\n<li><code>terraform help<\/code>: displays the documentation of Terraform CLI commands.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"demo-create-an-ec2-instance-on-aws\">Demo: Create an AWS EC2 Instance using Terraform<\/h2>\n\n\n\n<p>For the demo, I\u2019ll assume you have properly installed AWS CLI on your computer and configured it successfully by using the appropriate command:&nbsp;<code>aws configure<\/code>. You can read more about it from this&nbsp;<a href=\"https:\/\/numericaideas.com\/blog\/configure-aws-cli\/\" target=\"_blank\" rel=\"noreferrer noopener\">guide<\/a>.<\/p>\n\n\n<div class=\"vlp-link-container vlp-layout-basic wp-block-visual-link-preview-link\"><a href=\"https:\/\/numericaideas.com\/blog\/configure-aws-cli\/\" class=\"vlp-link\" title=\"How to Configure AWS CLI for Multi-Account Strategy\" rel=\"nofollow\" target=\"_blank\"><\/a><div class=\"vlp-layout-zone-side\"><div class=\"vlp-block-2 vlp-link-image\"><img decoding=\"async\" src=\"https:\/\/assets.numericaideas.com\/2023\/04\/how-to-configure-aws-cli-for-multi-account-strategy-1-min.png\" style=\"max-width: 150px; max-height: 150px\" \/><\/div><\/div><div class=\"vlp-layout-zone-main\"><div class=\"vlp-block-0 vlp-link-title\">How to Configure AWS CLI for Multi-Account Strategy<\/div><div class=\"vlp-block-1 vlp-link-summary\">In this article, we will go through the steps to configure AWS CLI for multiple accounts on your local machine or any server with Terminal access.<\/div><\/div><\/div>\n\n\n<p>We are going to create an EC2 server on AWS and then install Nginx on it, we ended up with three files just for illustration purposes.<\/p>\n\n\n\n<p>Watch it being done live in <a href=\"https:\/\/youtu.be\/tJ6L1332WU4?si=qRKtc9BLKmYILfw-&amp;t=588\">this video<\/a>:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Introduction to Terraform for Infrastructure Provisioning\" width=\"960\" height=\"540\" src=\"https:\/\/www.youtube.com\/embed\/tJ6L1332WU4?start=588&#038;feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>Let&#8217;s initialize the project using the&nbsp;<code>terraform init<\/code>&nbsp;command, then we create the following files below in the same folder.<\/p>\n\n\n\n<p>The file&nbsp;<a href=\"https:\/\/github.com\/numerica-ideas\/community\/blob\/master\/terraform\/introduction\/variables.tf\" target=\"_blank\" rel=\"noreferrer noopener\">variables.tf<\/a>&nbsp;includes the variables used by our IaC project:<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">variable \"aws_region\" {\n  type        = string\n  description = \"AWS region to use\"\n  default     = \"us-east-1\"\n}\nvariable \"instance_type\" {\n  type        = string\n  description = \"Instance type\"\n  default     = \"t3.medium\"\n}\nvariable \"instance_ami\" {\n  type        = string\n  description = \"Instance ami id\"\n  default     = \"ami-09e67e426f25ce0d7\"\n}\nvariable \"instance_tag_name\" {\n  type        = string\n  description = \"Instance tag name\"\n  default     = \"NewEC2Instance\"\n}<\/pre>\n\n\n\n<p>The infrastructure provisioning instruction itself generally resides in (or is called by) the&nbsp;<a href=\"https:\/\/github.com\/numerica-ideas\/community\/blob\/master\/terraform\/introduction\/main.tf\" target=\"_blank\" rel=\"noreferrer noopener\">main.tf<\/a>&nbsp;file:<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">provider \"aws\" {\n  region = var.aws_region\n}\nresource \"aws_instance\" \"new_instance\" {\n  ami                    = var.instance_ami\n  instance_type          = var.instance_type\n  vpc_security_group_ids = [aws_security_group.instance_sg.id]\n  user_data = &lt;&lt;-EOF\n        #!\/bin\/bash\n        apt update\n        apt install -y nginx\n        sudo service nginx start\n        EOF\n  tags = {\n    \"Name\" = var.instance_tag_name\n  }\n}\nresource \"aws_security_group\" \"instance_sg\" {\n  name = \"instance-sg\"\n  ingress {\n    description = \"instance ingress security group\"\n    from_port   = 80\n    to_port     = 80\n    cidr_blocks = [\"0.0.0.0\/0\"]\n    protocol    = \"tcp\"\n  }\n  egress {\n    from_port   = 0\n    to_port     = 0\n    protocol    = \"-1\"\n    cidr_blocks = [\"0.0.0.0\/0\"]\n  }\n}<\/pre>\n\n\n\n<p>As said on the top, we could define some outputs to be printed or not in the console, feel free to do so in the&nbsp;<a href=\"https:\/\/github.com\/numerica-ideas\/community\/blob\/master\/terraform\/introduction\/outputs.tf\" target=\"_blank\" rel=\"noreferrer noopener\">outputs.tf<\/a>&nbsp;file as below:<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">output \"instance_arn\" {\n  description = \"Created EC2 arn\"\n  value       = aws_instance.new_instance.arn\n}\noutput \"instance_public_ip\" {\n  description = \"Instance public ip\"\n  value       = aws_instance.new_instance.public_ip\n}\noutput \"instance_public_dns\" {\n  description = \"Instance public dns\"\n  value       = aws_instance.new_instance.public_dns\n}<\/pre>\n\n\n\n<p>Finally, let&#8217;s format the code (<code>terraform fmt<\/code>), perform the validation (<code>terraform validate<\/code>), then execute it by using the command&nbsp;<code>terraform apply -auto-approve<\/code>, you should have as output something similar to this:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/assets.numericaideas.com\/2023\/09\/terraform-execution-outputs.png\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Terraform execution outputs<\/figcaption><\/figure>\n\n\n\n<p>Here&#8217;s the complete&nbsp;<a href=\"https:\/\/github.com\/numerica-ideas\/community\/tree\/master\/terraform\/introduction\">source code<\/a>, the Hashicorp AWS provider&nbsp;<a href=\"https:\/\/registry.terraform.io\/providers\/hashicorp\/aws\/latest\/docs\">documentation<\/a>&nbsp;is available to manage other resources or services.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"advantages-of-terraform\">Advantages of Terraform<\/h2>\n\n\n\n<p>The benefits of using Terraform as an infrastructure provisioning tool are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Automation<\/strong>: infrastructure as code (IaC).<\/li>\n\n\n\n<li><strong>Cloud-agnostic<\/strong>: It enables multi-cloud deployment strategies using the same language (Hashicorp Configuration Language) to specify your Cloud infrastructure.<\/li>\n\n\n\n<li>The&nbsp;<strong>declarative<\/strong>&nbsp;approach of defining your cloud resources, vs imperative. Over here you declare your intentions, but not the steps to follow to reach them, Terraform is responsible for handling the orchestration to give you what you want.<\/li>\n\n\n\n<li>Terraform is&nbsp;<strong>stateful<\/strong>: roll-back is easily manageable since you can version your infrastructure state via a generated file.<\/li>\n\n\n\n<li><strong>Integrates<\/strong>&nbsp;well with existing Software Development workflows.<\/li>\n\n\n\n<li>Terraform is modular and favors the&nbsp;<strong>DRY principle (Do Not Repeat Yourself)<\/strong>&nbsp;to write high-quality and reusable codes.<\/li>\n<\/ul>\n\n\n\n<p>The complete source code of the project is available on&nbsp;<a href=\"https:\/\/github.com\/numerica-ideas\/community\/tree\/master\/terraform\/introduction\">GitHub<\/a>.<\/p>\n\n\n\n<p>In order to better your DevOps skills, learn&nbsp;<a href=\"https:\/\/numericaideas.com\/blog\/deploy-wordpress-2-tier-aws-architecture-with-terraform\/\" target=\"_blank\" rel=\"noreferrer noopener\">How To Deploy WordPress on a 2-Tier AWS Architecture using Terraform<\/a>&nbsp;by following this practical workshop:<\/p>\n\n\n<div class=\"vlp-link-container vlp-layout-basic wp-block-visual-link-preview-link\"><a href=\"https:\/\/numericaideas.com\/blog\/deploy-wordpress-2-tier-aws-architecture-with-terraform\/\" class=\"vlp-link\" title=\"Deploy WordPress on a 2-Tier AWS Architecture with Terraform\" rel=\"nofollow\" target=\"_blank\"><\/a><div class=\"vlp-layout-zone-side\"><div class=\"vlp-block-2 vlp-link-image\"><img decoding=\"async\" src=\"https:\/\/assets.numericaideas.com\/2023\/05\/Deploying-WordPress-on-a-2-Tier-AWS-Architecture-with-Terraform-1-min.png\" style=\"max-width: 150px; max-height: 150px\" \/><\/div><\/div><div class=\"vlp-layout-zone-main\"><div class=\"vlp-block-0 vlp-link-title\">Deploy WordPress on a 2-Tier AWS Architecture with Terraform<\/div><div class=\"vlp-block-1 vlp-link-summary\">Deploying WordPress on a 2-tier AWS architecture with Terraform offers a robust and scalable solution to host your website.<\/div><\/div><\/div>\n\n\n<p>\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/p>\n\n\n\n<p>We have just started our journey to build a network of professionals to grow even more our free knowledge-sharing community that\u2019ll give you a chance to learn interesting things about topics like cloud computing, software development, and software architectures while keeping the door open to more opportunities.<\/p>\n\n\n\n<p>Does this speak to you? If&nbsp;<strong>YES<\/strong>, feel free to&nbsp;<a href=\"https:\/\/discord.numericaideas.com\/\">Join our Discord Server<\/a>&nbsp;to stay in touch with the community and be part of independently organized events.<\/p>\n\n\n\n<p>\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h2>\n\n\n\n<p>To sum up, in this article, we looped over the essential knowledge you need to have in order to use Terraform as an IaC tool, some related articles are published on&nbsp;<a href=\"https:\/\/blog.numericaideas.com\/tag\/terraform\">the blog<\/a>.<\/p>\n\n\n\n<p>Thanks for reading this article. Like, recommend, and share if you enjoyed it. Follow us on&nbsp;<a href=\"https:\/\/www.facebook.com\/numericaideas\">Facebook<\/a>,&nbsp;<a href=\"https:\/\/twitter.com\/numericaideas\">Twitter<\/a>, and&nbsp;<a href=\"https:\/\/www.linkedin.com\/company\/numericaideas\">LinkedIn<\/a>&nbsp;for more content.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Terraform is an Infrastructure as Code (IaC) tool that allows you to automatically create and manage resources for anything that has an accessible API.<\/p>","protected":false},"author":2,"featured_media":18672,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[63,64],"tags":[62,65],"class_list":["post-17172","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud","category-devops","tag-aws","tag-terraform"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Introduction to Terraform<\/title>\n<meta name=\"description\" content=\"Terraform is an Infrastructure as Code (IaC) tool that allows you to automatically create and manage resources for anything that has an accessible API.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/numericaideas.com\/blog\/introduction-to-terraform\/\" \/>\n<meta property=\"og:locale\" content=\"fr_CA\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Introduction to Terraform\" \/>\n<meta property=\"og:description\" content=\"Terraform is an Infrastructure as Code (IaC) tool that allows you to automatically create and manage resources for anything that has an accessible API.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/numericaideas.com\/blog\/introduction-to-terraform\/\" \/>\n<meta property=\"og:site_name\" content=\"Orleando Dassi\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-01T19:58:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-07T03:44:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dassiorleando.com\/wp-content\/uploads\/2023\/09\/Terraform-Introduction-min.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1596\" \/>\n\t<meta property=\"og:image:height\" content=\"833\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Orl\u00e9ando Dassi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dassiorleando\" \/>\n<meta name=\"twitter:site\" content=\"@dassiorleando\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Orl\u00e9ando Dassi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/numericaideas.com\/blog\/introduction-to-terraform\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dassiorleando.com\/introduction-to-terraform\/\"},\"author\":{\"name\":\"Orl\u00e9ando Dassi\",\"@id\":\"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e\"},\"headline\":\"Introduction to Terraform\",\"datePublished\":\"2023-09-01T19:58:22+00:00\",\"dateModified\":\"2025-01-07T03:44:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dassiorleando.com\/introduction-to-terraform\/\"},\"wordCount\":1456,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e\"},\"image\":{\"@id\":\"https:\/\/numericaideas.com\/blog\/introduction-to-terraform\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dassiorleando.com\/wp-content\/uploads\/2023\/09\/Terraform-Introduction-min.png\",\"keywords\":[\"AWS\",\"Terraform\"],\"articleSection\":[\"Cloud\",\"DevOps\"],\"inLanguage\":\"fr-CA\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/numericaideas.com\/blog\/introduction-to-terraform\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dassiorleando.com\/introduction-to-terraform\/\",\"url\":\"https:\/\/numericaideas.com\/blog\/introduction-to-terraform\/\",\"name\":\"Introduction to Terraform\",\"isPartOf\":{\"@id\":\"https:\/\/dassiorleando.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/numericaideas.com\/blog\/introduction-to-terraform\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/numericaideas.com\/blog\/introduction-to-terraform\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dassiorleando.com\/wp-content\/uploads\/2023\/09\/Terraform-Introduction-min.png\",\"datePublished\":\"2023-09-01T19:58:22+00:00\",\"dateModified\":\"2025-01-07T03:44:54+00:00\",\"description\":\"Terraform is an Infrastructure as Code (IaC) tool that allows you to automatically create and manage resources for anything that has an accessible API.\",\"breadcrumb\":{\"@id\":\"https:\/\/numericaideas.com\/blog\/introduction-to-terraform\/#breadcrumb\"},\"inLanguage\":\"fr-CA\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/numericaideas.com\/blog\/introduction-to-terraform\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-CA\",\"@id\":\"https:\/\/numericaideas.com\/blog\/introduction-to-terraform\/#primaryimage\",\"url\":\"https:\/\/dassiorleando.com\/wp-content\/uploads\/2023\/09\/Terraform-Introduction-min.png\",\"contentUrl\":\"https:\/\/dassiorleando.com\/wp-content\/uploads\/2023\/09\/Terraform-Introduction-min.png\",\"width\":1596,\"height\":833,\"caption\":\"Introduction to Terraform\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/numericaideas.com\/blog\/introduction-to-terraform\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dassiorleando.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Introduction to Terraform\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dassiorleando.com\/#website\",\"url\":\"https:\/\/dassiorleando.com\/\",\"name\":\"Orleando Dassi\",\"description\":\"My personal portfolio and resume\",\"publisher\":{\"@id\":\"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dassiorleando.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-CA\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e\",\"name\":\"Orl\u00e9ando Dassi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-CA\",\"@id\":\"https:\/\/dassiorleando.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/dassiorleando.com\/wp-content\/uploads\/2025\/01\/Orleando-Dassi-Consultant-Quebec.webp\",\"contentUrl\":\"https:\/\/dassiorleando.com\/wp-content\/uploads\/2025\/01\/Orleando-Dassi-Consultant-Quebec.webp\",\"width\":1643,\"height\":1747,\"caption\":\"Orl\u00e9ando Dassi\"},\"logo\":{\"@id\":\"https:\/\/dassiorleando.com\/#\/schema\/person\/image\/\"},\"description\":\"I'm a Solutions Architect with 10 years of experience who is constantly learning while impacting the community by producing technical articles\/videos, building projects, and conducting tech mentoring\/coaching sessions. What describes me the most is my flexibility.\",\"sameAs\":[\"https:\/\/dassiorleando.com\/\",\"https:\/\/www.instagram.com\/dassiorleando\/\",\"https:\/\/www.linkedin.com\/in\/dassi-orleando-257b04ab\/\",\"https:\/\/x.com\/dassiorleando\",\"https:\/\/www.youtube.com\/@dassiorleando\"],\"url\":\"https:\/\/dassiorleando.com\/fr\/author\/dassiorleando\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Introduction to Terraform","description":"Terraform is an Infrastructure as Code (IaC) tool that allows you to automatically create and manage resources for anything that has an accessible API.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/numericaideas.com\/blog\/introduction-to-terraform\/","og_locale":"fr_CA","og_type":"article","og_title":"Introduction to Terraform","og_description":"Terraform is an Infrastructure as Code (IaC) tool that allows you to automatically create and manage resources for anything that has an accessible API.","og_url":"https:\/\/numericaideas.com\/blog\/introduction-to-terraform\/","og_site_name":"Orleando Dassi","article_published_time":"2023-09-01T19:58:22+00:00","article_modified_time":"2025-01-07T03:44:54+00:00","og_image":[{"width":1596,"height":833,"url":"https:\/\/dassiorleando.com\/wp-content\/uploads\/2023\/09\/Terraform-Introduction-min.png","type":"image\/png"}],"author":"Orl\u00e9ando Dassi","twitter_card":"summary_large_image","twitter_creator":"@dassiorleando","twitter_site":"@dassiorleando","twitter_misc":{"Written by":"Orl\u00e9ando Dassi","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/numericaideas.com\/blog\/introduction-to-terraform\/#article","isPartOf":{"@id":"https:\/\/dassiorleando.com\/introduction-to-terraform\/"},"author":{"name":"Orl\u00e9ando Dassi","@id":"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e"},"headline":"Introduction to Terraform","datePublished":"2023-09-01T19:58:22+00:00","dateModified":"2025-01-07T03:44:54+00:00","mainEntityOfPage":{"@id":"https:\/\/dassiorleando.com\/introduction-to-terraform\/"},"wordCount":1456,"commentCount":0,"publisher":{"@id":"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e"},"image":{"@id":"https:\/\/numericaideas.com\/blog\/introduction-to-terraform\/#primaryimage"},"thumbnailUrl":"https:\/\/dassiorleando.com\/wp-content\/uploads\/2023\/09\/Terraform-Introduction-min.png","keywords":["AWS","Terraform"],"articleSection":["Cloud","DevOps"],"inLanguage":"fr-CA","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/numericaideas.com\/blog\/introduction-to-terraform\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dassiorleando.com\/introduction-to-terraform\/","url":"https:\/\/numericaideas.com\/blog\/introduction-to-terraform\/","name":"Introduction to Terraform","isPartOf":{"@id":"https:\/\/dassiorleando.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/numericaideas.com\/blog\/introduction-to-terraform\/#primaryimage"},"image":{"@id":"https:\/\/numericaideas.com\/blog\/introduction-to-terraform\/#primaryimage"},"thumbnailUrl":"https:\/\/dassiorleando.com\/wp-content\/uploads\/2023\/09\/Terraform-Introduction-min.png","datePublished":"2023-09-01T19:58:22+00:00","dateModified":"2025-01-07T03:44:54+00:00","description":"Terraform is an Infrastructure as Code (IaC) tool that allows you to automatically create and manage resources for anything that has an accessible API.","breadcrumb":{"@id":"https:\/\/numericaideas.com\/blog\/introduction-to-terraform\/#breadcrumb"},"inLanguage":"fr-CA","potentialAction":[{"@type":"ReadAction","target":["https:\/\/numericaideas.com\/blog\/introduction-to-terraform\/"]}]},{"@type":"ImageObject","inLanguage":"fr-CA","@id":"https:\/\/numericaideas.com\/blog\/introduction-to-terraform\/#primaryimage","url":"https:\/\/dassiorleando.com\/wp-content\/uploads\/2023\/09\/Terraform-Introduction-min.png","contentUrl":"https:\/\/dassiorleando.com\/wp-content\/uploads\/2023\/09\/Terraform-Introduction-min.png","width":1596,"height":833,"caption":"Introduction to Terraform"},{"@type":"BreadcrumbList","@id":"https:\/\/numericaideas.com\/blog\/introduction-to-terraform\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dassiorleando.com\/"},{"@type":"ListItem","position":2,"name":"Introduction to Terraform"}]},{"@type":"WebSite","@id":"https:\/\/dassiorleando.com\/#website","url":"https:\/\/dassiorleando.com\/","name":"Orleando Dassi","description":"My personal portfolio and resume","publisher":{"@id":"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dassiorleando.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-CA"},{"@type":["Person","Organization"],"@id":"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e","name":"Orl\u00e9ando Dassi","image":{"@type":"ImageObject","inLanguage":"fr-CA","@id":"https:\/\/dassiorleando.com\/#\/schema\/person\/image\/","url":"https:\/\/dassiorleando.com\/wp-content\/uploads\/2025\/01\/Orleando-Dassi-Consultant-Quebec.webp","contentUrl":"https:\/\/dassiorleando.com\/wp-content\/uploads\/2025\/01\/Orleando-Dassi-Consultant-Quebec.webp","width":1643,"height":1747,"caption":"Orl\u00e9ando Dassi"},"logo":{"@id":"https:\/\/dassiorleando.com\/#\/schema\/person\/image\/"},"description":"I'm a Solutions Architect with 10 years of experience who is constantly learning while impacting the community by producing technical articles\/videos, building projects, and conducting tech mentoring\/coaching sessions. What describes me the most is my flexibility.","sameAs":["https:\/\/dassiorleando.com\/","https:\/\/www.instagram.com\/dassiorleando\/","https:\/\/www.linkedin.com\/in\/dassi-orleando-257b04ab\/","https:\/\/x.com\/dassiorleando","https:\/\/www.youtube.com\/@dassiorleando"],"url":"https:\/\/dassiorleando.com\/fr\/author\/dassiorleando\/"}]}},"_links":{"self":[{"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/posts\/17172","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/comments?post=17172"}],"version-history":[{"count":2,"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/posts\/17172\/revisions"}],"predecessor-version":[{"id":21679,"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/posts\/17172\/revisions\/21679"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/media\/18672"}],"wp:attachment":[{"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/media?parent=17172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/categories?post=17172"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/tags?post=17172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}