terraform-provider-cloudflare icon indicating copy to clipboard operation
terraform-provider-cloudflare copied to clipboard

Cloudflare Worker Usage Model

Open twmartin opened this issue 3 years ago • 4 comments

Current Terraform and Cloudflare provider version

2.26.1

Description

Specify the paid plan usage model (bundled vs unbound) for a Cloudflare Worker via Terraform.

Use cases

Specify the usage model for a paid plan Cloudflare Worker via Terraform in cases where the account default usage model is not desired

Potential Terraform configuration

resource "cloudflare_worker_script" "worker" {
  name        = "worker"
  content     = file("worker.js")
  usage_model = "bundled"
}

References

https://developers.cloudflare.com/workers/platform/pricing

twmartin avatar Sep 17 '21 15:09 twmartin

API documentation: https://api.cloudflare.com/#worker-account-settings-create-worker-account-settings

Requires cloudflare-go support first.

jacobbednarz avatar Sep 19 '21 22:09 jacobbednarz

any update on usage_model ?

JubbaSmail avatar Jan 07 '22 09:01 JubbaSmail

This has been added to cloudflare-go. Can this be added to the terraform now?

troymjones avatar Sep 21 '22 21:09 troymjones

The number of things added to cloudflare-go that have yet to reach the terraform provider is astounding.

mattfysh avatar Oct 13 '23 00:10 mattfysh

This issue has been closed as we are now tracking this internally with service teams directly. If you would like an update or to be notified when/if the product ships with this change, please reach out to Cloudflare Support or your account team who can watch the internal feature request for you.

jacobbednarz avatar Mar 25 '24 00:03 jacobbednarz