Automate the provisioning and management of cloud infrastructure using declarative code.
Write and execute a Terraform script to provision a VPC, a public subnet, and an EC2 instance.