Created
February 2, 2023 19:49
-
-
Save gabeio/ea4692f3d5fc1fdddeb76de654b3a324 to your computer and use it in GitHub Desktop.
vim regex converts terraform variables to outputs (for debugging)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%s/variable "\(.*\)" {\_.\{-}}/output "\1" {\r value = var.\1\r}/g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
only thing it doesn't like are
type = object({
s