terraform { # Here I specify which providers are required. In that instance, we say that we need AWS, its sourse and version required_providers { aws = { source = "hashicorp/aws" version = "~> 3.0" } } } # Here I specify the configuration of a provider and in that instance # I specify the region provider "aws" { region = "us-east-1"} # In this instance, I am defining the instance of an EC2 and the name of that instance is going to be "example". In the example below, we specify that it should be an EC2 instance with ubuntu and the type of the instance, which specifies the specs of my instance resource "aws_instance" "example" { ami = "ami-011899242bb902164" # Ubuntu 20.04 LTS // us-east-1 instance_type = "t2.micro"}