You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using an input variable and conditional check we can set either the dev
or prod network ID at runtime. Rather than the user edit the file or
input it on the command line.
Before users had to edit build.pkr.hcl and update the network ID and set
it to either prod or dev.
Now users can just provide the flag --var env=prod when running packer
build and it will use the dev or prod ID depending on the value of the
variable.
The variable defaults to dev if not specified as a saftey catch.
0 commit comments