Incorrectly reported deprecated resource when cloudflare_workers_cron_trigger resource is used #4118
Closed
3 tasks done
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
Milestone
Confirmation
Terraform and Cloudflare provider version
Terraform v1.9.5
Cloudflare provider 4.42.0
Affected resource(s)
cloudflare_workers_cron_trigger
Terraform configuration files
Link to debug output
https://gist.github.com/stankolubomir/937ae55a418347069581b14267328049
Panic output
No response
Expected output
No changes. Your infrastructure matches the configuration.
Actual output
Terraform has compared your real infrastructure against your configuration and found no differences, so no changes are needed.
╷
│ Warning: Deprecated Resource
│
│ with module.worker_script.cloudflare_workers_cron_trigger.default,
│ on ../../../modules/cf/cloudflare-worker/main.tf line 59, in resource "cloudflare_workers_cron_trigger" "default":
│ 59: resource "cloudflare_workers_cron_trigger" "default" {
│
│
cloudflare_worker_cron_trigger
is now deprecated and will be removed in the next major version. Usecloudflare_workers_cron_trigger
instead.│
│ (and one more similar warning elsewhere)
╵
Steps to reproduce
Just run terraform plan or apply.
Additional factoids
Here is the faulty line in code: https://github.com/cloudflare/terraform-provider-cloudflare/blob/96d6cbf6ddb631095789c22afd49f88833957eeb/internal/sdkv2provider/resource_cloudflare_workers_cron_trigger.go#L35C6-L35C42
There is:
func resourceCloudflareWorkersCronTrigger() *schema.Resource {
should be:
func resourceCloudflareWorkerCronTrigger() *schema.Resource {
References
Issue was introduced by #3500
The text was updated successfully, but these errors were encountered: