Updating existing/imported Hyperdrive fails as no ID passed through on Update #3250
Closed
2 tasks done
Labels
kind/bug
Categorizes issue or PR as related to a bug.
triage/needs-information
Indicates an issue needs more information in order to work on it.
Milestone
Confirmation
Terraform and Cloudflare provider version
Affected resource(s)
cloudflare_hyperdrive_config
Terraform configuration files
Link to debug output
None
Panic output
No response
Expected output
Should update existing/imported hyperdrive resource with values provided in the
cloudflare_hyperdrive_config
resource block.Actual output
Steps to reproduce
cloudflare_hyperdrive_config
resource block for that above created hyperdriveterraform import cloudflare_hyperdrive_config.example <account_id>/<hyperdrive_config_id>
terraform apply
to apply changes to reconcile between imported hyperdrive andcloudflare_hyperdrive_config
resourceAdditional factoids
The error message
required hyperdrive config id is missing
originates from https://github.com/cloudflare/cloudflare-go/blob/master/hyperdrive.go#L13, which in the context of our update call, starts here: https://github.com/cloudflare/cloudflare-go/blob/master/hyperdrive.go#L176-L178.This is happening because our call to
Update
within the terraform-provider does not pass through aHyperdriveID
parameter: https://github.com/cloudflare/terraform-provider-cloudflare/blob/master/internal/framework/service/hyperdrive_config/resource.go#L130-L143.Fixing the provider to pass through
HyperdriveID
should fix this issue.References
No response
The text was updated successfully, but these errors were encountered: