Skip to content

Support import block feature #472

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

Open
1 task done
drewmullen opened this issue May 1, 2025 · 1 comment
Open
1 task done

Support import block feature #472

drewmullen opened this issue May 1, 2025 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@drewmullen
Copy link

Terraform CLI and terraform-plugin-docs Versions

Some providers show examples of import blocks as well as the import commands. Example: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance#import

Image

Use Cases or Problem Statement

generate import blocks from examples or programmatically

Proposal

generate import blocks from examples or programatically

How much impact is this issue causing?

Low

Additional Information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@drewmullen drewmullen added the enhancement New feature or request label May 1, 2025
@austinvalle
Copy link
Member

Thanks for submitting this @drewmullen! This will become even more relevant once managed resources support importing via resource identity (which also uses import config blocks).

We already planned on solving the low hanging fruit which is allowing an import.tf or something similar to be used as an example and automatically added to the docs, with the potential of adding the resource identity schema similar to the resource schema right above it 👍🏻

@austinvalle austinvalle added this to the v0.22.0 milestone May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants