Terraform-Assignment List
Terraform-Day-1
Terraform installation steps for Windows, Amazon EC2 Linux 2, and MacOS, along with a hands-on example to validate the installation.
1. Install Terraform on Windows
2. Install Terraform on Amazon EC2 Linux 2
3. Install Terraform on MacOS
Hands-On: Validate Terraform Installation with a Simple Example
Create an S3 bucket in AWS using Terraform to validate the installation.
Initialize Terraform:
Validate the Configuration:
Preview the Plan:
Apply the Configuration:
Deploy the resources in AWS:
Verify the S3 Bucket:
Clean Up Resources:
In this lab, we’ll create a Terraform configuration that deploys 3 AWS EC2 instances with unique names using the count meta-parameter.
Create the .gitignore File
Terraform-Day-2
### Hands-On Lab: Setting Up Remote Backend for Terraform with S3 and DynamoDB
# Hands-on Lab: Terraform State Commands `terraform state list`, `terraform state show`, `terraform state rm`, `terraform state mv`, and others.
Hands-on Lab: Using Terraform Data Sources for AMI (Amazon Machine Image)
# Hands-on Lab: Using Output Values in Terraform
# Hands-on Lab: Using Terraform Variables
# Hands-on Lab: Different Ways to Pass Terraform Variables
# Hands-on Lab: Terraform Workspaces (Updated with Instance Type)