Comments (4)
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.
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.
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.
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)
- Dependency Dashboard
- darwin_arm64 still not supported HOT 5
- KMS encryption HOT 1
- Logging bucket generates a name with a duplicate HOT 4
- Using this module without without specifying an external context label module generates invalid resource names
- Upgrading from <0.33.1 to >=0.33.1 requires state move for bucket HOT 2
- terraform-provider-aws v4.0 incompatibility HOT 2
- Allow making changes to the s3 bucket policy
- terraform apply completes successfully with "Warning: Argument is deprecated" HOT 5
- Unable to be used with terraform workspaces HOT 2
- Reimplement with "cloudposse/terraform-aws-s3-bucket" to standardize parameters/features
- Add delete_protection to DynamoDB table HOT 3
- No compatibility with terraform v1.6 HOT 1
- Add lifecycle configuration to delete objects under a certain size to remove destroyed states
- Feature Request - Allow a parameter for the name of DynamoDB table HOT 1
- Error creating S3 bucket ... the region 'us-east-1' is wrong; expecting 'eu-central-1' HOT 3
- Remove the `read_capacity` and `write_capacity` from lifecycle change ignore
- Add support for multiple terraform backend config files HOT 6
- DynamoDB label attributes inconsistent due to null label module HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-aws-tfstate-backend.