Terraform is an open-source tool for provisioning infrastructure using a high-level configuration language.It enables infrastructure as code (IaC) to manage both cloud and on-premises environments.A sample Terraform example is provided for deploying an EC2 instance and a security group on AWS.The example includes steps to install Terraform, create configuration files, and deploy and destroy the infrastructure.