Creating Your First Infrastructure With Terraform
Learn to create an infrastructure using Terraform and how Terraform creates and destroys the infrastructure.
The first thing you have to do with a new Terraform project is to initialise Terraform for that project. To do this, provide aws_access_key_id
and aws_secret_access_key
, change <your-name>
for the bucket name, and click the RUN button:
đź“ťNote: Before running the project please do make sure that you have set up an AWS account. You can also refer to the lesson, Setting up an AWS Account.
Important Note:
- If you cannot edit the access keys and other fields in the terminal below, you don’t need to provide your credentials. We have got you covered.
- Please use only
us-east-2
region for working in AWS in this course. - Please ensure that the bucket name is globally unique.
provider "aws" { region = "us-east-2" } resource "aws_s3_bucket" "first_bucket" { bucket = "<your-name>-first-bucket" }
Initialise your first Terraform project
You will see some output on the ...
Get hands-on with 1400+ tech skills courses.