-
Notifications
You must be signed in to change notification settings - Fork 788
Closed
Labels
service/workersCategorizes issue or PR as related to the Workers service.Categorizes issue or PR as related to the Workers service.version/5Categorizes issue or PR as related to version 5 of the provider.Categorizes issue or PR as related to version 5 of the provider.
Description
Confirmation
- This is a bug with an existing resource and is not a feature request or enhancement. Feature requests should be submitted with Cloudflare Support or your account team.
- I have searched the issue tracker and my issue isn't already found.
- I have replicated my issue using the latest version of the provider and it is still present.
Terraform and Cloudflare provider version
Terraform v1.11.3
on windows_amd64
- provider registry.terraform.io/cloudflare/cloudflare v5.2.0
- provider registry.terraform.io/hashicorp/azuread v3.2.0
- provider registry.terraform.io/hashicorp/azurerm v4.24.0
- provider registry.terraform.io/hashicorp/random v3.7.1
- provider registry.terraform.io/pagerduty/pagerduty v3.23.1
Affected resource(s)
- cloudflare_workers_script
Terraform configuration files
resource "cloudflare_workers_script" "client_redirection" {
account_id = local.account_id
script_name = var.client_redirection_worker_name
content = file(var.client_redirection_worker_script_path)
bindings = [
{
type = "kv_namespace",
name = "ENV_CONFIG"
namespace_id = cloudflare_workers_kv_namespace.worker_kv_namespace_env_config.id
},
]
}Link to debug output
https://gist.github.com/ricohomewood/f106e629132b2cc8927492acbd82ab0b
Panic output
N/A
Expected output
No Changes as per 5.1.0
Actual output
Wants to update the cloudflare_workers_script for content and bindings properties even though they exist in the state and in the portal.
Steps to reproduce
- terraform plan against an existing cloudflare_workers_script
Additional factoids
There is no issue in the 5.1.0 version of the provider.
It seems this may be related to the issue in #5327 where on the GET /client/v4/accounts/fdde4de5b9116f852d27b13e195301e3/storage/kv/namespaces/5f2e93db8adb4bc8a10891ea58161c75 it returns the actual script and not the content property containing the script or the bindings property?
References
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
service/workersCategorizes issue or PR as related to the Workers service.Categorizes issue or PR as related to the Workers service.version/5Categorizes issue or PR as related to version 5 of the provider.Categorizes issue or PR as related to version 5 of the provider.