Terraform on ubuntu

Please feel free to contact us
Go

About

Terraform is a powerful open-source Infrastructure as Code (IaC) platform created by HashiCorp that allows teams to define, provision, and manage infrastructure using human-readable configuration files. By using a declarative syntax, Terraform makes it easy to describe the desired end-state of infrastructure and automatically handles the planning and execution required to achieve that state.

One of Terraform’s biggest strengths is its provider-agnostic design, supporting major cloud platforms such as AWS, Azure, Google Cloud, as well as hundreds of other services and on-prem environments. This enables a unified workflow for managing multi-cloud environments and adopting best practices for infrastructure versioning, automation, and collaboration.

Terraform offers a broad set of features including modular configurations, dependency handling, state management, and execution plans that preview changes before they are applied. These capabilities help teams reduce configuration drift, improve reliability, and ensure predictable, repeatable deployments at scale. Whether used for simple setups or complex enterprise architectures, Terraform streamlines infrastructure management and accelerates DevOps workflows.

  1. Type virtual machines in the search.
  2. Under Services, select Virtual machines.
  3. In the Virtual machines page, select Add. The Create a virtual machine page opens.
  4. In the Basics tab, under Project details, make sure the correct subscription is selected and then choose to Create new resource group. Type myResourceGroup for the name.*.
  5. Under Instance details, type myVM for the Virtual machine name, choose East US for your Region, and choose Ubuntu 18.04 LTS for your Image. Leave the other defaults.
  6. Under Administrator account, select SSH public key, type your user name, then paste in your public key. Remove any leading or trailing white space in your public key.
  7. Under Inbound port rules > Public inbound ports, choose Allow selected ports and then select SSH (22) and HTTP (80) from the drop-down.
  8. Leave the remaining defaults and then select the Review + create button at the bottom of the page.
  9. On the Create a virtual machine page, you can see the details about the VM you are about to create. When you are ready, select Create.

It will take a few minutes for your VM to be deployed. When the deployment is finished, move on to the next section.

Connect to virtual machine

Create an SSH connection with the VM.

  1. Select the Connect button on the overview page for your VM.
  2. In the Connect to virtual machine page, keep the default options to connect by IP address over port 22. In Login using VM local account a connection command is shown. Select the button to copy the command. The following example shows what the SSH connection command looks like:

ssh azureuser@<ip>

  1. Using the same bash shell you used to create your SSH key pair (you can reopen the Cloud Shell by selecting >_ again or going to https://shell.azure.com/bash), paste the SSH connection command into the shell to create an SSH session.

Usage/ Deployment Instructions

Connect to VM- Port- 22.

$ terraform -version

Submit Your Request

Captcha

Highlights

  • Infrastructure as Code IaC Define and manage infrastructure using declarative configuration files.
  • Multi-Cloud Support: Works with AWS, Azure, Google Cloud, Kubernetes, VMware, and 300+ providers.
  • Automation Friendly: Easily integrates with CI/CD pipelines for automated provisioning.
  • Consistency & Repeatability: Eliminates manual setup and reduces configuration errors.
  • Version Control Integration: Treat infrastructure like code—track, review, and collaborate.
  • Reusable Modules: Create modular, shareable components for scalable architectures.
  • State Management: Tracks infrastructure state for accurate updates and drift detection.

Application Installed