diff --git a/.changelog/3117.txt b/.changelog/3117.txt new file mode 100644 index 0000000000..7000483954 --- /dev/null +++ b/.changelog/3117.txt @@ -0,0 +1,3 @@ +```release-note:breaking-change +resource/cloudflare_custom_pages: Removed the `always_online` variant. This page is never generated anymore, if a requested page is unavailable in the archive the error page that would have been shown if always online wasn't enabled is shown. +``` diff --git a/docs/resources/custom_pages.md b/docs/resources/custom_pages.md index 024108144f..a05812878c 100644 --- a/docs/resources/custom_pages.md +++ b/docs/resources/custom_pages.md @@ -24,7 +24,7 @@ resource "cloudflare_custom_pages" "example" { ### Required -- `type` (String) The type of custom page you wish to update. Available values: `basic_challenge`, `waf_challenge`, `waf_block`, `ratelimit_block`, `country_challenge`, `ip_block`, `under_attack`, `500_errors`, `1000_errors`, `always_online`, `managed_challenge`. +- `type` (String) The type of custom page you wish to update. Available values: `basic_challenge`, `waf_challenge`, `waf_block`, `ratelimit_block`, `country_challenge`, `ip_block`, `under_attack`, `500_errors`, `1000_errors`, `managed_challenge`. - `url` (String) URL of where the custom page source is located. ### Optional diff --git a/internal/sdkv2provider/schema_cloudflare_custom_pages.go b/internal/sdkv2provider/schema_cloudflare_custom_pages.go index 52b673b671..67cbc4fcda 100644 --- a/internal/sdkv2provider/schema_cloudflare_custom_pages.go +++ b/internal/sdkv2provider/schema_cloudflare_custom_pages.go @@ -35,7 +35,6 @@ func resourceCloudflareCustomPagesSchema() map[string]*schema.Schema { "under_attack", "500_errors", "1000_errors", - "always_online", "managed_challenge", }, true), Description: fmt.Sprintf("The type of custom page you wish to update. %s", renderAvailableDocumentationValuesStringSlice([]string{ @@ -48,7 +47,6 @@ func resourceCloudflareCustomPagesSchema() map[string]*schema.Schema { "under_attack", "500_errors", "1000_errors", - "always_online", "managed_challenge", })), },