Free Hands-on labbeginnerAWS
Create a Static S3 Website Using Terraform
Learn how to create and configure a static S3 website using only Terraform. This lab does not grant access to the AWS console, encouraging both least privilege and using Infrastructure as Code (IaC) to manage cloud infrastructure instead of ClickOps.
- 22 guided tasks

Scenario
In this lab we'll be learning about HashiCorp Terraform, an Infrastructure as Code (IaC) language that enables us to build and maintain infrastructure via code. We'll start by setting up our development environment and then build a static website hosted on an AWS S3 bucket.
Before you launch the lab, install these tools:
- Terraform - installation instructions (on MacOS I recommend using Homebrew)
- AWS CLI - installation instructions
- Visual Studio Code (optional) - installation instructions
This lab was created by Tyler Petty for Cybr, and you can view the full code and repository here for reference.
What you will learn
- Explain how Terraform providers connect infrastructure code to service APIs
- Configure AWS credentials for Terraform
- Create and deploy an S3 bucket with Terraform
- Configure an S3 bucket to host a public static website
- Destroy infrastructure with Terraform
Hands-on lab
Create a Static S3 Website Using Terraform
Free with a Cybr account.