Welcome to the Terraform 101 repository! This project provides an introductory guide to using Terraform, a powerful tool for building, changing, and versioning infrastructure safely and efficiently.
This repository contains a series of examples and exercises designed to help you get started with Terraform. Whether you are a beginner or looking to refresh your skills, you will find valuable resources here to understand the basics of Terraform and its application in real-world scenarios.
Before you begin, ensure you have the following installed:
-
Clone the Repository:
git clone https://github.com/chenjd/terraform-101.git cd terraform-101
-
Initialize Terraform:
Navigate to any example directory and run:
terraform init
-
Apply the Configuration:
Apply the Terraform configuration to create the infrastructure:
terraform apply
-
Destroy the Infrastructure:
When you're done, clean up the resources:
terraform destroy
The repository is organized as follows:
terraform-101/
├── example1/
├── example2/
├── example3/
├── ...
└── README.md
examples/
contains different Terraform configuration examples. Each example is self-contained and can be used independently.
Each example in the examples/
directory includes a README.md
file with detailed instructions on how to use it. Follow the specific steps outlined in each example to practice and understand different aspects of Terraform.
We welcome contributions! If you have any improvements or additional examples, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature
). - Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/your-feature
). - Create a new Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.
Happy Terraforming! If you have any questions or need further assistance, feel free to open an issue or contact the repository maintainers.