From 46436950b706a88fc71cdf9ba65ce0924509e166 Mon Sep 17 00:00:00 2001 From: Zack Pollard Date: Mon, 25 Nov 2024 15:47:27 +0000 Subject: [PATCH] feat: add r2 oc region to accepted location hints --- .changelog/4660.txt | 3 +++ docs/resources/r2_bucket.md | 2 +- internal/framework/service/r2_bucket/schema.go | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .changelog/4660.txt diff --git a/.changelog/4660.txt b/.changelog/4660.txt new file mode 100644 index 0000000000..5b8aaeb77e --- /dev/null +++ b/.changelog/4660.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +resource/cloudflare_r2_bucket: Added support for Oceania region in location hints. +``` \ No newline at end of file diff --git a/docs/resources/r2_bucket.md b/docs/resources/r2_bucket.md index 0eea4c1b81..414d61c3e9 100644 --- a/docs/resources/r2_bucket.md +++ b/docs/resources/r2_bucket.md @@ -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 diff --git a/internal/framework/service/r2_bucket/schema.go b/internal/framework/service/r2_bucket/schema.go index 5be450634d..0cf731c9a9 100644 --- a/internal/framework/service/r2_bucket/schema.go +++ b/internal/framework/service/r2_bucket/schema.go @@ -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{