-
How to do this in global?
I tried using |
Beta Was this translation helpful? Give feedback.
Answered by
katcipis
Dec 7, 2022
Replies: 1 comment
-
Hi @irenair, Can't you manipulate "data.terraform_remote_state.vpc" as a string on globals, like this:
And then when you need it to generate code, inside the content block, you use
This should work and the final generated code will be There is some more details about this on #724 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mariux
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @irenair,
Can't you manipulate "data.terraform_remote_state.vpc" as a string on globals, like this:
And then when you need it to generate code, inside the content block, you use
tm_hcl_expression
, like this:This should work and the final generated code will be
data.terraform_remote_state.vpc
(no quotes).There is some more details about this on #724