-
-
Notifications
You must be signed in to change notification settings - Fork 322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible bug? Using snippets in tfvars causes unmarshal error. #865
Comments
In Terraform, file contents are reference via |
Thanks for the prompt reply! The docs seem to show making a modification to the
in the docs. I would assume I would be inserting my added snippets in with my tfvars. After passing file module as a string I get
|
Your new problem is another Terraform syntax error, file should not be quoted. https://www.terraform.io/docs/configuration/functions/file.html Snippets let you provide CLC or FCC snippets for customization, they do not require a fork. |
Right. Fully get what snippets are for. Though the docs are a bit confusing on usage of them. As noted here https://typhoon.psdn.io/advanced/customization/#flatcar-linux we're pathing the configs within the mercury module Which if I'm understanding correctly would require a
I totally agree this can be a syntax error, but I'm confused on the usage as per varibles.tf snippets are a Either way removing the quotes terraform says "functions can't be called here". |
I'll chalk this up as it's not possible to pass a snippet path within a tfvars file. Thanks for your help, I'll close this out. |
I see, you're specifically wanting to set this in the special Terraform tfvars file. I believe tfvarsf files are limited to very simple cases and I don't think you'd be able to use Terraform functions or other Terraform features. But you can refer to Terraform upstream, since this isn't specific to snippets or this project. The docs only describe writing Terraform declarations in |
Description
Attempting to pass a snippet to a heterogeneous node in a
map(list(string))
causes an unmarshall error.Steps to Reproduce
Provide clear steps to reproduce the bug.
Expected behavior
terraform plan -var.tfvars
&terraform apply -var.tfvars
to succeed when referencing snippets in a tfvars file.Environment
Example usage of snippets in a tfvars:
Example "snippet" aka CLC
If I'm understanding the documentation for customization and checking the variable definition for varibles.tf this should work?
Instead receiving:
The text was updated successfully, but these errors were encountered: