Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
go, terraform

Research direction

Start by locating the Terraform mode that currently invokes tfadd and inspect how terraform-client-go exposes provider capabilities. Check the Terraform version before selecting the path, use GenerateResourceConfig when the provider supports it, and retain tfadd as the fallback for older versions or unsupported providers. Done means both paths are covered and the referenced Terraform RPC behavior is respected.

Written by the indexing model from the issue text.

Description

enhancement

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

Dominant language
Go
Stars
1.9k
Forks
220
Avg merge
1d 15h
Merged PRs (30d)
5

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • No Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/aztfexport

All issues in Azure/aztfexport

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.