Skip to content

Conversation

@trujillo-adam
Copy link
Contributor

this PR adds documentation for configuring constructs associated with querying resources and importing them in bulk, such as the list block and the terraform query command.. These are beta features in 1.14

@github-actions
Copy link
Contributor

github-actions bot commented Sep 15, 2025

Vercel Previews Deployed

Name Status Preview Updated (UTC)
Dev Portal ✅ Ready (Inspect) Visit Preview Tue Sep 16 22:08:16 UTC 2025
Unified Docs API ✅ Ready (Inspect) Visit Preview Tue Sep 16 22:02:50 UTC 2025

@github-actions
Copy link
Contributor

github-actions bot commented Sep 15, 2025

Broken Link Checker

No broken links found! 🎉

@trujillo-adam trujillo-adam marked this pull request as ready for review September 15, 2025 18:45
@trujillo-adam trujillo-adam requested review from a team as code owners September 15, 2025 18:45
Copy link
Member

@dbanck dbanck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! I left some suggestions

trujillo-adam and others added 2 commits September 16, 2025 08:39
Co-authored-by: Daniel Banck <dbanck@users.noreply.github.com>
Co-authored-by: Samsondeen <40821565+dsa0x@users.noreply.github.com>

# `terraform query` command

The `terraform query` command queries existing infrastructure for unmanaged resources according to the `tfquery.hcl` file so that you can import them into your Terraform workspace.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unmanaged

Not sure if it matters, but from what I've tested so far it can also find managed resources. I set up Terraform configuration to create a aws_batch_job_queue, then a list block to find it and was abel to generate configuration from it.

Co-authored-by: Brian McClain <brianmmcclain@gmail.com>
@trujillo-adam trujillo-adam merged commit f32f1f2 into main Sep 18, 2025
15 checks passed
@trujillo-adam trujillo-adam deleted the atru/query-and-import-bulk branch September 18, 2025 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants