juxt

steveb8n 2017-09-13T00:02:13.000187Z

@dominicm I found the problem. It’s a bug in the tfjson code. Logged an issue. https://github.com/juxt/roll/issues/11

stijn 2017-09-13T08:29:03.000013Z

is it possible to pass parameters to mach? I didn't find that in de docs

stijn 2017-09-13T08:29:22.000187Z

the use case is passing the environment such that you can select the right profile from aero

dominicm 2017-09-13T08:29:44.000246Z

@stijn you can pass in a constants parameter

dominicm 2017-09-13T08:30:12.000233Z

Pro tip for all: mach --help works

dominicm 2017-09-13T08:30:33.000217Z

I should generate bash completion

stijn 2017-09-13T08:33:46.000084Z

thanks @dominicm

1👍
stijn 2017-09-13T08:42:26.000115Z

hmmm, I can't figure out what the syntax of mach/constants is (in the Machfile)

stijn 2017-09-13T08:42:48.000235Z

mach/constants [environment "staging"] doesn't seem to work

stijn 2017-09-13T08:43:04.000028Z

mach/constants {environment "staging"} neither

stijn 2017-09-13T08:45:53.000186Z

in both cases it says WARNING: Use of undeclared Var cljs.user/environment

stijn 2017-09-13T08:52:27.000383Z

ok, you have to use #ref [mach/constant environment], but that doesn't work yet in mach/props

stijn 2017-09-13T09:50:47.000020Z

@dominicm I think this is a limitation on the usage of constants, no?

dominicm 2017-09-13T09:51:24.000116Z

mach/constants {environment "staging"} used to work

stijn 2017-09-13T09:51:40.000315Z

yes, but how do I read the value in mach/props?

dominicm 2017-09-13T09:51:56.000095Z

Tbh props and constants are two people doing the same thing and giving it a different name

stijn 2017-09-13T09:53:41.000340Z

ok, so what is needed is a --property option on the command line 🙂

steveb8n 2017-09-13T10:11:43.000229Z

@dominicm @jonpither now that I have a reliable deploy working, I have 2 questions. I’ll raise them here now to start the conversation but I suspect there’s no quick answer

steveb8n 2017-09-13T10:14:04.000234Z

1/ the only repeatable way to tf apply is to tf destroy before doing so. without that I consistently get an error about the ALB already being in use. Should this work or what is the plan for this use case. I need this for my CI/Staging deploy. Using destroy before is fine for this use case but I suspect that’s not intended behaviour.

steveb8n 2017-09-13T10:15:30.000082Z

2/ I can’t see how Blue/Green is achieved with Roll. I will need this for my prod deploys. Can you give me a bit of insight into the vision for this? Or (better) add some text to the README?

steveb8n 2017-09-13T10:15:55.000072Z

BTW: my SSL service is working beautifully now. very happy with that progress

1👍