Setting up Your First Project
This lesson will teach you how to set up your first project in Terraform and will go over each part of the project in detail.
We'll cover the following...
In this chapter, we are going to create your first Terraform project. We will not cover everything in great detail as we will circle back and fill in the gaps in later chapters. We want the focus of this chapter to be about getting a feel for running Terraform and actually creating some infrastructure with it.
Setting up your first project
-
We’ll create a file named
main.tf
-
Inside the file
main.tf
, we’ll paste the following text (replace<yourname>
with your name or something unique):
Press + to interact
provider "aws" {region = "us-east-2"}resource "aws_s3_bucket" "first_bucket" {bucket = "<yourname>-first-bucket"}
That’s all we need for our first Terraform project. The Terraform ...