Skip to content

Instantly share code, notes, and snippets.

@gabeio
Created February 2, 2023 19:49
Show Gist options
  • Save gabeio/ea4692f3d5fc1fdddeb76de654b3a324 to your computer and use it in GitHub Desktop.
Save gabeio/ea4692f3d5fc1fdddeb76de654b3a324 to your computer and use it in GitHub Desktop.
vim regex converts terraform variables to outputs (for debugging)
%s/variable "\(.*\)" {\_.\{-}}/output "\1" {\r value = var.\1\r}/g
@gabeio
Copy link
Author

gabeio commented Feb 2, 2023

only thing it doesn't like are type = object({s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment