📌Real-World Example:
Provisioning an EC2 Instance with Terraform
In this example, we define an AWS provider block specifying the region.
Then, we create an aws_instance resource named web_server, configuring its AMI (Amazon Machine Image) ID and instance type.
ALT Running terraform apply executes this code and provisions the EC2 instance in your AWS account.