Welcome to the Terraform Training Code Repository! This repository contains Terraform example codes and training materials to help you learn how to use Terraform effectively for managing infrastructure as code.
The repository is organized into directories, each focusing on a specific Terraform use case or best practice:
├── 1.Create_ec2_instance
├── 2.Create_multiple_resources
├── 3.Create_ec2_instance_with_backend
├── 4.Create_resources_with_folder_structure
├── .gitignore
-
1.Create_ec2_instance
Learn how to create a simple EC2 instance using Terraform. This example demonstrates basic resource creation and configuration. -
2.Create_multiple_resources
Understand how to create and manage multiple resources in a single configuration file. A great starting point for handling complex infrastructures. -
3.Create_ec2_instance_with_backend
This example introduces backend configuration for state management, allowing you to store and manage Terraform state files remotely. -
4.Create_resources_with_folder_structure
Learn best practices for organizing your Terraform configurations using a modular folder structure. This makes scaling and maintaining configurations easier.
- Terraform installed on your machine (Download Terraform)
- An active cloud provider account (e.g., AWS, Azure, GCP)
- Basic understanding of cloud computing and infrastructure as code
- Clone this repository:
git clone https://github.com/skmahe1077/hashicorp-terraform-training-code.git
- Navigate to the folder for the specific example you want to try:
cd hashicorp-terraform-training-code/1.Create_ec2_instance
- Initialize Terraform in the directory:
terraform init
- Apply the Terraform configuration:
terraform apply
- Follow the prompts to create resources.
Contributions are welcome! To contribute:
- Fork this repository.
- Create a branch for your feature or bug fix.
- Submit a pull request for review.