Replies: 3 comments
-
it appears that IF i generate tfvars then the "direct" reference to "global" in the tf module is not working. I do not remember this to be the case earlier...
|
Beta Was this translation helpful? Give feedback.
-
Hi @az-z By looking at this snippet:
Is If possible, please make a small reproducible code, because it's hard to reason about just grep outputs, we need the complete blocks to understand if it's a bug or works as intended. |
Beta Was this translation helpful? Give feedback.
-
I4k,
Thank you for looking into this.
Main.tf was not generated by TM. It is a "normal" tf file.
"...can never use global in a pure Terraform file"..
Oh, that's right!
I must had a severe case of brainless activity.
Thank you for the help!
…On Sun, Apr 28, 2024, 09:09 i4k ***@***.***> wrote:
Hi @az-z <https://github.com/az-z>
By looking at this snippet:
./main.tf:38: cidr_blocks = var.internal_elb ? global.vpn_cidr : ["0.0.0.0/0"]
Is main.tf a generated file? If yes, please show us the generate_hcl
block, at least the important bits, because if so it's a Terramate bug. If
not, then you can never use global in a pure Terraform file.
If possible, please make a small reproducible code, because it's hard to
reason about just grep outputs, we need the complete blocks to understand
if it's a bug or works as intended.
—
Reply to this email directly, view it on GitHub
<#1674 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGHHXPDVQPX4NBVXEG5Q7LY7TYJNAVCNFSM6AAAAABG3AHGTOVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TENJSGEZTC>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
hello,
i'm not certain what is the problem might be. I appreciate all and ideas.
In the nutshell the reference to "global" variable in the TF is "not working". At the same time if I refer to "internal_elb" using "var" the code works. Must be something obvious that i can't see.
vpn_cidr
is declared on the top of the repo.Beta Was this translation helpful? Give feedback.
All reactions