Thanks to visit codestin.com
Credit goes to github.com

Skip to content

amitirisha/sanidhyaTerraform

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🎋:Main branch will be updated code

🎋:Feature branch will have earlier code

Terraform Infrastructure Management

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.

Project Overview

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.

File Structure

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.

Getting Started

Prerequisites

  • 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).

Configuration

  1. Clone the repository:

    git clone https://github.com/Sanidhya-Vats/Terraform.git
    cd Terraform
  2. Customize the variables: Open terraform.tfvars and modify the variables according to your requirements.

Deploying Infrastructure

  1. Navigate to the desired environment:

    cd environments/dev
  2. Initialize Terraform:

    terraform init
  3. Plan the deployment:

    terraform plan
  4. Apply the configuration:

    terraform apply

    Confirm the action when prompted.

Cleaning Up

To remove the resources created by Terraform, run:

terraform destroy

Contributing

Contributions are welcome! Please open an issue or submit a pull request if you have suggestions or improvements.

License

This project is licensed under the MIT License.

Acknowledgments

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.

About

Terraform Generic Codes for Azure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 100.0%