Skip to content

Commit

Permalink
feat: add r2 oc region to accepted location hints
Browse files Browse the repository at this point in the history
  • Loading branch information
zackpollard committed Nov 26, 2024
1 parent e2013d8 commit 4643695
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/4660.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/cloudflare_r2_bucket: Added support for Oceania region in location hints.
```
2 changes: 1 addition & 1 deletion docs/resources/r2_bucket.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ resource "cloudflare_r2_bucket" "example" {

### Optional

- `location` (String) The location hint of the R2 bucket. Available values: `WNAM`, `ENAM`, `WEUR`, `EEUR`, `APAC`
- `location` (String) The location hint of the R2 bucket. Available values: `WNAM`, `ENAM`, `WEUR`, `EEUR`, `APAC`, `OC`

### Read-Only

Expand Down
2 changes: 1 addition & 1 deletion internal/framework/service/r2_bucket/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
)

var locationHints = []string{"WNAM", "ENAM", "WEUR", "EEUR", "APAC"}
var locationHints = []string{"WNAM", "ENAM", "WEUR", "EEUR", "APAC", "OC"}

func (r *R2BucketResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) {
resp.Schema = schema.Schema{
Expand Down

0 comments on commit 4643695

Please sign in to comment.