PaloAltoNetworks / terraform-provider-prismacloudcompute

Terraform provider for Prisma Cloud Compute
https://registry.terraform.io/providers/PaloAltoNetworks/prismacloudcompute/latest
Mozilla Public License 2.0
24 stars 28 forks source link

Upgrade to the context-aware versions of Terraform resource functions #38

Closed hi-artem closed 1 year ago

hi-artem commented 2 years ago

Is your feature request related to a problem?

Non-context aware create, read, update and delete are deprecated and recommended to be replaced.

References:

Create - https://pkg.go.dev/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema#CreateFunc Read - https://pkg.go.dev/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema#ReadFunc Delete - https://pkg.go.dev/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema#DeleteFunc Update - https://pkg.go.dev/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema#UpdateFunc

Describe the solution you'd like

Replace CRUD functions with context-aware versions that have long-term support.

Reference - https://www.terraform.io/docs/extend/guides/v2-upgrade-guide.html#more-support-for-context-context

maxboynton commented 1 year ago

Issue has been addressed in the v0.8.0 release (https://github.com/PaloAltoNetworks/terraform-provider-prismacloudcompute/pull/71).