🎋:Main branch will be updated code
🎋:Feature branch will have earlier code
This repository contains Terraform configurations for managing cloud infrastructure across various providers. The goal is to demonstrate best practices in infrastructure as code (IaC) using Terraform.
This project showcases modular Terraform configurations that allow users to provision, manage, and destroy cloud resources efficiently. The repository includes examples for setting up different types of resources and best practices for organizing Terraform code.
The repository contains the following directories and files:
modules/: Contains reusable Terraform modules for different cloud resources.environments/: Contains environment-specific configurations.dev/: Development environment configurations.prod/: Production environment configurations.
provider.tf: Configures the provider(s) for Terraform.variables.tf: Defines the variables used across configurations.terraform.tfvars: Provides variable values for different environments.README.md: This file, providing an overview of the project.
- Terraform installed on your machine.
- An active account with the cloud provider you wish to use (e.g., AWS, Azure, GCP).
- Cloud CLI installed for authentication (optional but recommended).
-
Clone the repository:
git clone https://github.com/Sanidhya-Vats/Terraform.git cd Terraform -
Customize the variables: Open
terraform.tfvarsand modify the variables according to your requirements.
-
Navigate to the desired environment:
cd environments/dev -
Initialize Terraform:
terraform init
-
Plan the deployment:
terraform plan
-
Apply the configuration:
terraform apply
Confirm the action when prompted.
To remove the resources created by Terraform, run:
terraform destroyContributions are welcome! Please open an issue or submit a pull request if you have suggestions or improvements.
This project is licensed under the MIT License.
Thank you for checking out this repository! Feel free to connect if you have any questions or feedback.
Feel free to modify any section to better fit the specifics of your repository or your personal style! Let me know if you need any adjustments.