Git Product home page Git Product logo

Comments (4)

osterman avatar osterman commented on May 25, 2024

This is actually by design. If we added provisioning of the second bucket, we would change the interface to the module by always requiring a secondary provider to be passed to the module. It also complicates the naming convention of the bucket resource, as the secondary bucket should be disambiguated from the primary bucket. Our convention is to use the environment to connote the region (e.g. ue2 for us-east-2), but since we allow the user to provision that secondary bucket - they can name it whatever they want. Furthermore, by not defining the secondary destination within the module, it allows for maximum flexibility of the secondary bucket. The caller can provision that secondary bucket using this module using whatever other settings they want. It's also how we manage it in our reference architecture.

from terraform-aws-tfstate-backend.

schollii avatar schollii commented on May 25, 2024

So you mean the HCL2 does not currently support provider being enabled / disabled so it would always have to be given even if replication is not desired?

What about in that case providing a module that creates an s3 bucket suitable as a tfstate bucket replica for referencing in the backend module vars?

from terraform-aws-tfstate-backend.

Nuru avatar Nuru commented on May 25, 2024

Closing as "wontfix". @schollii for your reference:

What about in that case providing a module that creates an s3 bucket suitable as a tfstate bucket replica for referencing in the backend module vars?

You can use https://github.com/cloudposse/terraform-aws-s3-bucket

from terraform-aws-tfstate-backend.

schollii avatar schollii commented on May 25, 2024

I ended up creating my own
https://registry.terraform.io/modules/schollii/multi-stack-backends

because I needed more automation than what the cloudposse module provided.

from terraform-aws-tfstate-backend.

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.