Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terraform plugin SDK update #66

Open
poddm opened this issue Aug 4, 2023 · 1 comment
Open

Terraform plugin SDK update #66

poddm opened this issue Aug 4, 2023 · 1 comment
Assignees
Milestone

Comments

@poddm
Copy link
Contributor

poddm commented Aug 4, 2023

Looks like cloudstack is using the "legacy Terraform plugin SDK". To ensure terraform core compatibility we should look at upgrading to SDK v2.

Current: github.com/hashicorp/terraform v0.12.0

v1-upgrade-guide

As of September 2019, Terraform provider developers importing the Go module github.com/hashicorp/terraform, known as Terraform Core, should switch to github.com/hashicorp/terraform-plugin-sdk, the Terraform Plugin SDK, instead.
..
We will use the term "legacy Terraform plugin SDK" when referring to the version of Terraform Core imported and used by providers.

Upgrading to the latest Terraform SDK

At the time of the Terraform 0.12 release, the Terraform SDK is a set of sub-directories inside the Terraform Core repository. Therefore upgrading to the latest Terraform SDK involves upgrading all of the dependencies on Go packages with the prefix github.com/hashicorp/terraform/ to a version with support for the new provider protocol.

NOTE: The SDK is now its own Go module. Existing providers should upgrade to at least v0.12.7 before switching to the standalone SDK. This is to isolate issues between Terraform SDK v0.11 and v0.12, and the standalone SDK. New providers should vendor the standalone SDK from the start.

@fabiomatavelli
Copy link
Contributor

This was implemented by #71

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants