---
title: "Terraform Hands-On Labs on AWS | Cybr"
description: "Practice Terraform with hands-on AWS labs for beginners and cloud engineers. Build infrastructure, manage state, use modules, and start for free."
url: https://cybr.com/hands-on-labs/terraform/
---

Practice Terraform on AWS

# Terraform Hands-On Labs

Learn Terraform by building real AWS infrastructure. Practice resources, modules, state, drift, imports, networking, and secure access in guided labs.

[Start a free Terraform lab →](https://cybr.com/hands-on-labs/lab/create-a-static-s3-website-using-terraform/)

No credit card required

![Create a static Amazon S3 website with Terraform hands-on lab](https://media.cybr.com/2024/11/S3-Static-Site-with-Terraform-Banner-3.jpg)

![Johnny Endrihs](https://media.cybr.com/2025/12/johnny-endrihs.jpg)![Christopher](https://media.cybr.com/2023/09/christopher-krisnd.jpeg)![Rafael Martinez](https://media.cybr.com/2024/02/rafael-martinez.jpeg)![Lixin Zhang](https://media.cybr.com/2023/07/lixin-zhang.jpeg)![Karan Thakkar](https://media.cybr.com/2025/11/karan-thakkar.png)

**80,000+** people learn with Cybr

- Real AWS resources
- Guided Terraform tasks
- No cloud bill

![Cisco](https://cybr.comhttps//media.cybr.com/2026/08/cisco-light-360.png)![Verizon](https://cybr.comhttps//media.cybr.com/2026/08/verizon-light-360.png)![Toyota](https://cybr.comhttps//media.cybr.com/2026/08/toyota-light-360.png)![Check Point](https://cybr.comhttps//media.cybr.com/2026/08/checkpoint-light-360.png)![Moody’s](https://cybr.comhttps//media.cybr.com/2026/08/moodys-light-360.png)![AT&T](https://cybr.comhttps//media.cybr.com/2026/08/att-light-360.png)![Virginia Tech](https://cybr.comhttps//media.cybr.com/2026/08/virginiatech-light-360.png)

Learn by building

## Start with a Terraform lab, then build your skills

Start free with a static website, then continue with VPCs, reusable modules, state, drift, and resource imports.

1.

   Free

   Free beginner lab

   ### Create a Static S3 Website Using Terraform

   Write Terraform code and deploy a working static website on Amazon S3.

   Open lab

   [Create a Static S3 Website Using Terraform](https://cybr.com/hands-on-labs/lab/create-a-static-s3-website-using-terraform/)

2.

   Premium

   Core infrastructure

   ### Create a VPC using Terraform

   Build an Amazon VPC while you learn resources, variables, and outputs.

   Open lab

   [Create a VPC using Terraform](https://cybr.com/hands-on-labs/lab/create-a-vpc-using-terraform/)

3.

   Premium

   Reusable modules

   ### Building reusable Terraform modules

   Turn repeated infrastructure code into modules that teams can maintain.

   Open lab

   [Building reusable Terraform modules](https://cybr.com/hands-on-labs/lab/building-reusable-terraform-modules/)

4.

   Premium

   State and drift

   ### Managing Terraform State and Drift

   See how Terraform tracks resources and responds when infrastructure changes.

   Open lab

   [Managing Terraform State and Drift](https://cybr.com/hands-on-labs/lab/managing-terraform-state-and-drift/)

5.

   Premium

   Resource imports

   ### Importing AWS resources into Terraform

   Bring existing AWS resources under Terraform management without rebuilding them.

   Open lab

   [Importing AWS resources into Terraform](https://cybr.com/hands-on-labs/lab/importing-aws-resources-into-terraform/)

[Browse all infrastructure as code labs](https://cybr.com/hands-on-lab-category/iac/)

Terraform practice topics

## Build practical infrastructure as code skills

The Terraform lab collection covers the work that cloud teams handle: initial deployments, reusable code, state, existing resources, and secure AWS access.

### Start with AWS resources

Write your first configurations and learn how Terraform creates connected cloud resources.

- [Create a Static S3 Website Using Terraform](https://cybr.com/hands-on-labs/lab/create-a-static-s3-website-using-terraform/)
- [Creating an S3 Bucket with Terraform](https://cybr.com/hands-on-labs/lab/creating-an-s3-bucket-with-terraform/)
- [Create a VPC Using Terraform](https://cybr.com/hands-on-labs/lab/create-a-vpc-using-terraform/)

### Build networks and secure access

Connect VPC, EC2, IAM, and Systems Manager resources through Terraform.

- [Deploy EC2 Instances in a Custom VPC](https://cybr.com/hands-on-labs/lab/deploying-ec2-instances-in-a-custom-vpc-with-terraform/)
- [Deploy VPC Endpoints for SSM](https://cybr.com/hands-on-labs/lab/deploying-vpc-endpoints-for-ssm-with-terraform/)
- [Build a Network and Deploy AWS SSM](https://cybr.com/hands-on-labs/lab/build-a-network-and-deploy-aws-ssm-to-securely-connect-to-ec2-instances-with-terraform/)
- [Build an SSM Module and IAM Role](https://cybr.com/hands-on-labs/lab/building-an-ssm-module-and-iam-role-in-terraform/)

### Manage code and state

Reuse configurations, store state, find drift, and adopt infrastructure that already exists.

- [Building Reusable Terraform Modules](https://cybr.com/hands-on-labs/lab/building-reusable-terraform-modules/)
- [Remote Terraform State](https://cybr.com/hands-on-labs/lab/remote-terraform-state/)
- [Managing Terraform State and Drift](https://cybr.com/hands-on-labs/lab/managing-terraform-state-and-drift/)
- [Importing AWS Resources into Terraform](https://cybr.com/hands-on-labs/lab/importing-aws-resources-into-terraform/)
- [Import an Existing Amazon S3 Bucket Challenge](https://cybr.com/hands-on-labs/lab/import-an-existing-amazon-s3-bucket-challenge/)

Free cheat sheets

## Terraform and AWS cheat sheets for your next deployment

Quick references for Terraform commands, configuration, and the AWS network and access controls behind your infrastructure.

- [Terraform on AWS cheat sheet](https://cybr.com/cheat-sheets/terraform-on-aws/)

  Terraform CLI commands, providers, variables, modules, and state concepts for building and managing AWS infrastructure.

- [Security groups vs. NACLs cheat sheet](https://cybr.com/cheat-sheets/nacl-vs-sgs/)

  Compare subnet-level and instance-level traffic filtering, including stateful and stateless behavior.

- [AWS IAM policy anatomy cheat sheet](https://cybr.com/cheat-sheets/iam-policy-anatomy/)

  Understand IAM policy elements, role trust relationships, and permissions for infrastructure managed with Terraform.

- [Least-privilege S3 bucket policy cheat sheet](https://cybr.com/cheat-sheets/s3-least-privilege/)

  Scoped bucket-policy examples for restricting access to S3 resources, including remote Terraform state.

[Browse all cloud security cheat sheets](https://cybr.com/cheat-sheets/)

How the labs work

## Practice Terraform without using your own AWS account

Cybr prepares the AWS environment for each lab. You can focus on Terraform code instead of account setup, billing, and cleanup.

1. Step 01

   ### Choose a lab

   Start free or choose a premium lab that matches your next skill.

2. Step 02

   ### Launch the environment

   Get the AWS resources and access that the lab requires.

3. Step 03

   ### Build with Terraform

   Follow the tasks, run Terraform, and inspect the infrastructure that you create.

**Isolated AWS training environments**

Practice without changing personal or company infrastructure. Cybr provides the lab environment and covers the AWS resource costs.

Terraform runs on cloud platforms

## Build your AWS knowledge alongside Terraform

These Terraform labs deploy AWS resources such as Amazon S3, VPC, EC2, IAM, and Systems Manager. Use our AWS hands-on labs to practice the services and security controls behind the code.

[Explore AWS hands-on labs →](https://cybr.com/hands-on-labs/aws/) [View the Terraform on AWS course](https://cybr.com/courses/terraform-on-aws-from-zero-to-cloud-infrastructure/)

Before you start

## Terraform hands-on lab FAQ

Is there a free Terraform hands-on lab?

Yes. Create a free Cybr account to build a static Amazon S3 website with Terraform. You do not need a credit card. [Start a free Terraform lab](https://cybr.com/hands-on-labs/lab/create-a-static-s3-website-using-terraform/)

Do I need my own AWS account?

No. Cybr supplies the AWS environment and lab access. Your personal and company AWS accounts stay separate.

Do I need Terraform experience?

No. Beginners can start with the free guided lab. Later labs cover modules, remote state, drift, imports, networking, and secure access.

What do I need to complete a Terraform lab?

Each lab explains its requirements. You receive the cloud access and instructions that you need for the lab tasks.

Will AWS charge me for Terraform lab resources?

No. Cybr provides the AWS environment, covers its cloud costs, and removes the lab resources after your session.

## Start learning Terraform with a free hands-on lab

Build a working Amazon S3 website with Terraform in a guided AWS environment.

[Start a free Terraform lab →](https://cybr.com/hands-on-labs/lab/create-a-static-s3-website-using-terraform/) [Browse all infrastructure as code labs](https://cybr.com/hands-on-lab-category/iac/)

No credit card required
