Skip to content

Commit

Permalink
docs: update WAF deprecation date to 2024-01-15
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbednarz committed Jun 27, 2024
1 parent f4df35d commit badb3dc
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 28 deletions.
4 changes: 2 additions & 2 deletions docs/resources/filter.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Filter expressions that can be referenced across multiple features,
e.g. Firewall Rules. See [what is a filter](https://developers.cloudflare.com/firewall/api/cf-filters/what-is-a-filter/)
for more details and available fields and operators.

~> `cloudflare_filter` is in a deprecation phase that will last for 14 months
(July 1st, 2024). During this time period, this resource is still fully
~> `cloudflare_filter` is in a deprecation phase until January 15th, 2025.
During this time period, this resource is still fully
supported but you are strongly advised to move to the
`cloudflare_ruleset` resource. Full details can be found in the
[developer documentation](https://developers.cloudflare.com/waf/reference/migration-guides/firewall-rules-to-custom-rules/#relevant-changes-for-terraform-users).
Expand Down
4 changes: 2 additions & 2 deletions docs/resources/firewall_rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ rule creation.
Filter expressions needs to be created first before using Firewall
Rule.

~> `cloudflare_firewall_rule` is in a deprecation phase that will last for 14
months (July 1st, 2024). During this time period, this resource is still
~> `cloudflare_firewall_rule` is in a deprecation phase until January 15th, 2025.
During this time period, this resource is still
fully supported but you are strongly advised to move to the
`cloudflare_ruleset` resource. Full details can be found in the
[developer documentation](https://developers.cloudflare.com/waf/reference/migration-guides/firewall-rules-to-custom-rules/#relevant-changes-for-terraform-users).
Expand Down
4 changes: 2 additions & 2 deletions docs/resources/rate_limit.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Provides a Cloudflare rate limit resource for a given zone. This can
be used to limit the traffic you receive zone-wide, or matching more
specific types of requests/responses.

~> `cloudflare_rate_limit` is in a deprecation phase that will last for 14
months (July 1st, 2024). During this time period, this resource is still
~> `cloudflare_rate_limit` is in a deprecation phase until January 15th, 2025.
During this time period, this resource is still
fully supported but you are strongly advised to move to the
`cloudflare_ruleset` resource. Full details can be found in the
[developer documentation](https://developers.cloudflare.com/waf/reference/migration-guides/old-rate-limiting-deprecation/#relevant-changes-for-terraform-users).
Expand Down
10 changes: 5 additions & 5 deletions internal/sdkv2provider/resource_cloudflare_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ func resourceCloudflareFilter() *schema.Resource {
for more details and available fields and operators.
`),
DeprecationMessage: heredoc.Doc(fmt.Sprintf(`
%s resource is in a deprecation phase that will
last for 14 months (July 1st, 2024). During this time period, this
resource is still fully supported but you are strongly advised
to move to the %s resource. For more information, see
https://developers.cloudflare.com/waf/reference/migration-guides/firewall-rules-to-custom-rules/#relevant-changes-for-terraform-users.
%s resource is in a deprecation phase until January 15th, 2025.
During this time period, this resource is still fully supported
but you are strongly advised to move to the %s resource.
For more information, see https://developers.cloudflare.com/waf/reference/migration-guides/firewall-rules-to-custom-rules/#relevant-changes-for-terraform-users.
`, "`cloudflare_filter`", "`cloudflare_ruleset`")),
}
}
Expand Down
13 changes: 7 additions & 6 deletions internal/sdkv2provider/resource_cloudflare_firewall_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import (
"context"
"errors"
"fmt"
"github.com/MakeNowJust/heredoc/v2"
"strings"

"github.com/MakeNowJust/heredoc/v2"

cloudflare "github.com/cloudflare/cloudflare-go"
"github.com/cloudflare/terraform-provider-cloudflare/internal/consts"
"github.com/hashicorp/terraform-plugin-log/tflog"
Expand Down Expand Up @@ -34,11 +35,11 @@ func resourceCloudflareFirewallRule() *schema.Resource {
Rule.
`),
DeprecationMessage: heredoc.Doc(fmt.Sprintf(`
%s resource is in a deprecation phase that will
last for 14 months (July 1st, 2024). During this time period, this
resource is still fully supported but you are strongly advised
to move to the %s resource. For more information, see
https://developers.cloudflare.com/waf/reference/migration-guides/firewall-rules-to-custom-rules/#relevant-changes-for-terraform-users.
%s resource is in a deprecation phase until January 15th, 2025.
During this time period, this resource is still fully supported
but you are strongly advised to move to the %s resource.
For more information, see https://developers.cloudflare.com/waf/reference/migration-guides/firewall-rules-to-custom-rules/#relevant-changes-for-terraform-users.
`, "`cloudflare_firewall_rule`", "`cloudflare_ruleset`")),
}
}
Expand Down
10 changes: 5 additions & 5 deletions internal/sdkv2provider/resource_cloudflare_rate_limit.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ func resourceCloudflareRateLimit() *schema.Resource {
specific types of requests/responses.
`),
DeprecationMessage: heredoc.Doc(fmt.Sprintf(`
%s resource is in a deprecation phase that will
last for 14 months (July 1st, 2024). During this time period, this
resource is still fully supported but you are strongly advised
to move to the %s resource. For more information, see
https://developers.cloudflare.com/waf/reference/migration-guides/old-rate-limiting-deprecation/#relevant-changes-for-terraform-users.
%s resource is in a deprecation phase until January 15th, 2025.
During this time period, this resource is still fully supported
but you are strongly advised to move to the %s resource.
For more information, see https://developers.cloudflare.com/waf/reference/migration-guides/old-rate-limiting-deprecation/#relevant-changes-for-terraform-users.
`, "`cloudflare_rate_limit`", "`cloudflare_ruleset`")),
}
}
Expand Down
4 changes: 2 additions & 2 deletions templates/resources/filter.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ description: |-

{{ .Description | trimspace }}

~> `cloudflare_filter` is in a deprecation phase that will last for 14 months
(July 1st, 2024). During this time period, this resource is still fully
~> `cloudflare_filter` is in a deprecation phase until January 15th, 2025.
During this time period, this resource is still fully
supported but you are strongly advised to move to the
`cloudflare_ruleset` resource. Full details can be found in the
[developer documentation](https://developers.cloudflare.com/waf/reference/migration-guides/firewall-rules-to-custom-rules/#relevant-changes-for-terraform-users).
Expand Down
4 changes: 2 additions & 2 deletions templates/resources/firewall_rule.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ description: |-

{{ .Description | trimspace }}

~> `cloudflare_firewall_rule` is in a deprecation phase that will last for 14
months (July 1st, 2024). During this time period, this resource is still
~> `cloudflare_firewall_rule` is in a deprecation phase until January 15th, 2025.
During this time period, this resource is still
fully supported but you are strongly advised to move to the
`cloudflare_ruleset` resource. Full details can be found in the
[developer documentation](https://developers.cloudflare.com/waf/reference/migration-guides/firewall-rules-to-custom-rules/#relevant-changes-for-terraform-users).
Expand Down
4 changes: 2 additions & 2 deletions templates/resources/rate_limit.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ description: |-

{{ .Description | trimspace }}

~> `cloudflare_rate_limit` is in a deprecation phase that will last for 14
months (July 1st, 2024). During this time period, this resource is still
~> `cloudflare_rate_limit` is in a deprecation phase until January 15th, 2025.
During this time period, this resource is still
fully supported but you are strongly advised to move to the
`cloudflare_ruleset` resource. Full details can be found in the
[developer documentation](https://developers.cloudflare.com/waf/reference/migration-guides/old-rate-limiting-deprecation/#relevant-changes-for-terraform-users).
Expand Down

0 comments on commit badb3dc

Please sign in to comment.