Skip to content
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

How to pass parameters to Nix script from Terraform? #77

Open
smulikHakipod opened this issue Jul 18, 2023 · 3 comments
Open

How to pass parameters to Nix script from Terraform? #77

smulikHakipod opened this issue Jul 18, 2023 · 3 comments

Comments

@smulikHakipod
Copy link

Hi!
Let's say I want to pass PublicIP and other parameters from Terraform to Nix file, how should I do that?
I tried using

extra_eval_args = ["--argstr", "some_arg", aws_instance.node.public_ip]
or
extra_build_args = ["--argstr", "some_arg", aws_instance.node.public_ip]

but none of those are shown in the Nix file as arguments.

What other approach should I use?

Thanks

@adrian-gierakowski
Copy link
Contributor

Let's say I want to pass PublicIP and other parameters from Terraform to Nix file, how should I do that?

which nix file? Do you mean one of these scripts:

I tried using

extra_eval_args = ["--argstr", "some_arg", aws_instance.node.public_ip]
or

How are you setting these? Would you mind sharing repo with a minimal repro? Thanks!

@smulikHakipod
Copy link
Author

smulikHakipod commented Jul 18, 2023

Thanks for help @adrian-gierakowski !
In my case I would like to pass a parameter from lets say
from


to here

I hope it makes things more clear.
I can make a minimal repo tomorrow. Thanks again!

@smulikHakipod
Copy link
Author

smulikHakipod commented Jul 19, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants