https://store-images.s-microsoft.com/image/apps.40554.eae47917-3bc2-45b7-bcf3-ec10a1596d4a.40e98f49-ff34-4d18-87d4-678906dd6526.0e2a89d1-bac3-4b86-b6c5-c2158c97ebab
Terraform1.10 on Ubuntu22.04
HANWEI SOFTWARE TECHNOLOGY(HONG KONG) CO.,LIMITED
Terraform1.10 on Ubuntu22.04
HANWEI SOFTWARE TECHNOLOGY(HONG KONG) CO.,LIMITED
Terraform1.10 on Ubuntu22.04
HANWEI SOFTWARE TECHNOLOGY(HONG KONG) CO.,LIMITED
Terraform is an infrastructure as code(IaC) tool for defining, provisioning, and managing resources with configuration files.
Terraform 1.10 on Ubuntu 22.04 is an advanced infrastructure as code (IaC) tool designed to help users define, provision, and manage cloud and on-premises resources using declarative configuration files. This offering benefits a wide range of users, including DevOps engineers, system administrators, cloud architects, and software developers, by simplifying complex infrastructure management tasks and enhancing deployment consistency. By automating resource provisioning and enabling reproducible infrastructure setups, Terraform 1.10 addresses critical customer needs such as reducing manual configuration errors, minimizing operational overhead, and ensuring scalability and reliability in deployment processes. This makes it an essential tool for modern infrastructure management and DevOps practices.
Please enter the root user first:
sudo su -
Navigate to the working directory:
cd learn-terraform-docker-container
Initialize the project and download a plugin called a provider, which allows Terraform to interact with Docker:
terraform init
Use the configuration to set up an NGINX server container. When Terraform prompts you to confirm, type yes and press ENTER:
terraform apply
Verify the existence of the NGINX container by visiting localhost:8000 in your web browser or by running the following command to view the container:
docker ps
To stop the container, run:
terraform destroy
Next, you will create real infrastructure in your Azure cloud.