Skip to content

It contains terraform modules and roots deployments for Kubernetes cluster in different Cloud providers

License

Notifications You must be signed in to change notification settings

carlosrodlop/terraform-lib

Repository files navigation

Terraform Library

terraform-icon

Welcome to my Terraform Library, a storage place for my assets related to my journey around Terraform and Iac for the Cloud.


GitHub Latest Release) GitHub Issues gitleaks badge gitsecrets terraform_checkov terraform docs mdLinkChecker

Documentation References

About

  • It contains deployments and configuration for Kubernetes Cluster and companion infrastructure for different Cloud providers.

Usage

  • Terraform operations use makefile inside every cloud provider (e.g. aws) to give you examples of the most common operation command set. There are targets for the most common scenarios: init (with backend), plan/apply and destroy but also a general action target to run any terraform command.
    • Copy .env.example to .env to customize the environment variables. Although, some variables can be passed as arguments to target in the make command (ROOT for example).
  • Values Customization:
    • Variables: Copy shared.tfvars.example to shared.tfvars inside the cloud/provider/env folder. Then, copy .auto.tfvars.example to .auto.tfvars inside the root folders. Customize files with your values. It relies on Variables inheritance. See Terraform - Variable Precedence - Learning-Ocean
    • Backend:
      1. Apply the Root state-bucket creates a remote backend
      2. Copy backend.tf.example to backend.tf in every Root to use the backend created in the previous step.
  • It uses submodules. For example, the Helm provider uses the values from the Kubernetes library. Helm provider is separated from the creation of the K8s cluster Stacking with managed Kubernetes cluster resources
    • ⚠️ IMPORTANT - It requires git submodule update --init --recursive
  • Dev Container approach: make run using images from docker-lib

About

It contains terraform modules and roots deployments for Kubernetes cluster in different Cloud providers

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published