Terraform is a tool for provisioning Infrastructure as Code (Iac). It can provision infrastructure on your machine or any cloud provider and automatically deploy the infrastructure from code without any manual intervention.
In this Cloud Lab, you’ll start by learning about Terraform. You’ll provision an infrastructure locally using Terraform and will learn about the Terraform code blocks. You’ll also create an S3 bucket on AWS, allowing public access to the bucket contents, and upload an object to the S3 bucket. Then, you’ll create a Lambda function to access the bucket’s contents using Terraform. You’ll create an IAM role for the Lambda function as well. Lastly, you’ll create a security group and set up a React application on the EC2 instance through Terraform.
By the end of this Cloud Lab, you’ll be able to provision infrastructure on AWS using Terraform. These skills are essential for mastering IaC and transforming manual processes into efficient, version-controlled infrastructures.
The following is the high-level architecture diagram of the infrastructure that you’ll create in this Cloud Lab: