A set of labs to help you get started with Terraform / OpenTofu on AWS
Find a file
2024-05-10 23:06:39 +01:00
1-getting-started adding footers to work 2024-05-10 23:05:11 +01:00
2-simple-example adding footers to work 2024-05-10 23:05:11 +01:00
3-remote-states adding footers to work 2024-05-10 23:05:11 +01:00
4-gitlab-ci adding footers to work 2024-05-10 23:05:11 +01:00
demo/iac Add full lab 4 2024-04-16 23:00:19 +01:00
img add images 2024-05-10 23:06:39 +01:00
.DS_Store adding image to root 2024-04-16 21:17:23 +01:00
.gitignore gitignore 2024-04-15 16:31:27 +01:00
LICENSE adding footers to work 2024-05-10 23:05:11 +01:00
README.md adding footers to work 2024-05-10 23:05:11 +01:00

Terraform/OpenTofu Labs

Terraform and OpenTofu Labs for AWS

Welcome to the Terraform/Tofu labs for AWS. This set of labs aims to teach you the basics of terraform/tofu, to get you started on your journey. It focuses on deploying resources to AWS (Amazon Web Services) and keeps costs at a minimum.

Note

Don't forget to do the clean up steps after the labs to shut down the infrastructure.

Requirements

It's recommended that you are familiar with the linux command line and bash, however you can just copy and past from the tutorials

Labs

  • Lab 1 - Will get you setup with the tooling and show you the basic commands
  • Lab 2 - Will introduce you to variables
  • Lab 3 - Will help you create and setup remote states using dynamoDB and S3
  • Lab 4 - Will walk you through setting up a Gitlab CI/CD pipeline with Terraform (tofu coming soon)

Trouble Shooting

No Space left on device

If you experience and issue like below on your CloudShell you'll need to delete any unused terraform.tfstate and terraform.tfstate.backup in previous directories. You may also want to consider removing .terraform folders from each code directory as this will free up the most space.

no space left on disk

Note

Make sure you have run terraform destroy before deleting on-disk state files, otherwise you'll need to manually delete resources in the AWS console to avoid charges!