This repository serves as a workspace for practicing Terraform and managing infrastructure as code (IaC) using HashiCorp's Terraform tool.
Note
As the number of the folder increases so does the complexity so make sure to read each folders ReadMe file
In this repository, you'll find various folders containing Terraform configurations (*.tf
) along with associated files and modules.
Each folder represents a different scenario or project where Terraform is utilized to provision and manage infrastructure resources on AWS.
├── 01/
│ └── file.tf (Terraform configuration files)
│ └── README.md
├── 02/
└── 03/
-
Clone this repository to your local machine:
git clone https://github.com/raphaeleze/terrafromPractice.git
-
Navigate to the desired project folder:
cd 01/
-
Initialize Terraform within the project folder:
terraform init
Tip
Run terraform validate to make sure there are no errors
-
Review the Terraform configurations and make any necessary changes.
-
Apply the Terraform configurations to provision infrastructure:
terraform apply
Important
Don't forget to destroy all resources so you don't incur unnecessary bills
- After practicing, clean up resources by running:
terraform destroy
Contributions to this repository are welcome! If you have any Terraform configurations or projects you'd like to share or improve, feel free to submit a pull request.
- Terraform Documentation: Official Terraform documentation for reference.
- HashiCorp Learn: Official Terraform tutorials and guides.
- terraform's best practices for the structure of your code and rules on coding.