Open marccortinas opened 3 months ago
Voting for Prioritization
Volunteering to Work on This Issue
once a bucket is created, you cannot change the location of the bucket. we should probably do a ForceNew: true
here to prevent this scenario.
Following up, per the docs
Location Hints are only honored the first time a bucket with a given name is created. If you delete and recreate a bucket with the same name, the original bucket’s location will be used.
A solution might be to check is the location hint has changed without the bucket name changing and throw an error.
Confirmation
Terraform and Cloudflare provider version
Affected resource(s)
Terraform configuration files
Link to debug output
https://gist.github.com/marccortinas/d96bdfc0573929acf2ba7fbfcfaefd4c
Panic output
Expected output
Actual output
Steps to reproduce
Additional factoids
Finally i modified the name of the bucket. The first bucket was called
statics
and the current one is calledstatic
and it's working fineReferences
https://developers.cloudflare.com/r2/reference/data-location/ https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/r2_bucket