Free Hands-on labbeginnerAWS
Creating an S3 bucket with Terraform
Learn how to configure and deploy an S3 bucket entirely using Infrastructure as Code (IaC) with Terraform.
- 8 guided tasks
- Terminal in the browser

Scenario
This lab is part of the Terraform on AWS course. It continues the Configuring an AWS resource lesson, where you write the main.tf file that you'll deploy here. If you completed that lesson in your own terminal, open its directory and continue to the next task.
In this lab, you’ll define an S3 bucket in Terraform code and deploy it entirely using Infrastructure as Code (IaC). Finally, you’ll tear down the resources and clean up the environment.
What you will learn
- Start from a Terraform configuration that defines an S3 bucket.
- Format, initialize, and validate a Terraform configuration directory.
- Preview a change with terraform plan and deploy it with terraform apply.
- Verify the bucket with the AWS CLI and remove it with terraform destroy.
Hands-on lab
Creating an S3 bucket with Terraform
Free with a Cybr account.