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

Allow setting worker compatibility_date/flags

Open Qantas94Heavy opened this issue 3 years ago • 0 comments

Current Terraform and Cloudflare provider version

  • Terraform 1.2.3
  • Cloudflare terraform provider 3.15.0

Description

Cloudflare allows setting a compatibility date/flags for certain Worker features/bug fixes: https://developers.cloudflare.com/workers/platform/compatibility-dates/

However, the current cloudflare_worker_script resource does not provide this setting.

Use cases

Allows enabling new Cloudflare worker features and bug fixes that may change existing behaviour.

Potential Terraform configuration

resource "cloudflare_worker_script" "example" {
  ...
  compatibility_date = "2022-04-05"
  compatibility_flags = ["url_standard"]
}

References

No response

Qantas94Heavy avatar Aug 29 '22 01:08 Qantas94Heavy