When you pass in a variable into terraform it becomes an environment variable, presumably used by the precompiled code
data "template_file" "eth_service" {
filename = "./files/eth.service"
vars {
wallet_address =
"${var.wallet_address}"
}
}
withExecStart=/tmp/ethminer -G -F eth-us.dwarfpool.com:80/${wallet_address}
In this case, though, the included systemd unit launches "ethminer" with a hard-coded wallet address passed in.