CRON Trigger creation failed with workers.api.error.subdomain_required
#3304
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.
triage/debug-log-attached
Indicates an issue or PR has a complete Terraform debug log.
Confirmation
Terraform and Cloudflare provider version
terraform_version: 1.6.4
Affected resource(s)
cloudflare_worker_cron_trigger
Terraform configuration files
Link to debug output
https://gist.github.com/lyc8503/c6b82f173d6fde370fbb2b1331dae7d9
Panic output
No response
Expected output
Terraform should create the CRON Trigger without problems.
Actual output
Creation failed with
workers.api.error.subdomain_required
Steps to reproduce
terraform init
terraform apply
Additional factoids
This problem only happens with new Cloudflare Accounts (Hasn't setup any Workers before, without setting up a Worker domain)
There seems to be an inconsistency in the behavior of the API: if a Cloudflare account has never created any Workers, a newly created Worker by Terraform will not be able to set the CRON Trigger due to the above error
References
No response
The text was updated successfully, but these errors were encountered: