Code Monkey home page Code Monkey logo

Comments (3)

brikis98 avatar brikis98 commented on June 11, 2024

One of the limitations of Terraform is that the backend config blocks do not support ANY variables or interpolation. That's why they are hard-coded and copy/pasted in most places in the book.

Terraform does not natively offer any way to keep the backend config DRY. You can extra some of the pieces into reusable files using partial configuration, but the key parameter must be specified manually for every single module, which is a very tedious and error-prone process. Another option is to use a tool like Terragrunt, which has first-class features for keeping your backend configuration DRY. Both options are covered in the book and code examples in this repo!

from terraform-up-and-running-code.

muhannad0 avatar muhannad0 commented on June 11, 2024

Ah, alright. That explains it nicely. (Guess I got a bit ahead of myself there.)

Also, just wanted to mention that I'm enjoying the book plenty. It's helped me understand a lot about Terraform and its usage patterns. Thank you for that.

from terraform-up-and-running-code.

brikis98 avatar brikis98 commented on June 11, 2024

Thanks! That's great to hear 😄

from terraform-up-and-running-code.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.