Skip to content

Use GenerateResourceConfig RPC to generate config instead of using the tfadd if the server support it #652

Description

@magodo

Since terraform v1.14.0, there will be a new RPC protocol GenerateResourceConfig that allows the provider to generate a precise config instead of using tfadd. We shall check whether the target provider supports that, if so, we use this new method, otherwise fallback to using tfadd.

This requires the support of the new interfaces in terraform-client-go.

This also requires to add a check on the terraform version (with tf mode), if less than v1.14.0, still using tfadd. Gradually, we shall deprecate tfadd if all the azure providers have supported the new RPC protocol.

Reference: hashicorp/terraform#37515

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions