Projects

Fixing The Problems By Code Refactoring

  • Fixing Hard Coded Values: We will introduce variables, and remove hard coding.

    • Starting with the provider block, declare a variable named region, give it a default value, and update the provider section by referring to the declared variable.
        variable "region" {
            default = "eu-central-1"
        }
    
        provider "aws" {
            region = var.region
        }
    
    • Do the same to cidr value in the vpc block, and all t...
      Learn More