Azure / Azure/aztfexport

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

Open
#652 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
1.9k
Forks
221
Avg merge
15h 43m
Merged PRs (30d)
9

Description

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: https://github.com/hashicorp/terraform/pull/37515

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.