Search infrastructure code for a resource type.
Section: Logs, docs, and ops recipes
Find Terraform resource blocks
bash
bash
rg -t tf '^resource\s+"aws_' infra/Explanation
Great for impact analysis before cloud changes.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Logs, docs, and ops recipes
Find container image references
Search YAML and Helm files for image tags.
Find debug logging in source code
Locate `console.log` usage across a codebase.