erlang - Add Kinetic to ChicagoBoss App -


i looking add kinetic chicago boss app, have added kinetic library deps directory within chicago boss app. when run erlang shell within kinetic directory have development.config in root of kinetic directory looks below:

[{kinetic,     [{args, [         % of these values optional         % kinetic of context instance         {region, "us-east-1"},         {aws_access_key_id, "akaaaaaabababa"},         {aws_secret_access_key, "3/fx9987sxc352728181892838bhbjkd"},         {iam_role, "kinetic"},          {lhttpc_opts, [{max_connections, 5000}]}     ]}] }]. 

when start chicago boss app , run kinetic command im getting invalid credentials error seems kinetic library loaded not constants aws keys...any idea how in chicago boss?

thanks!

solution

just paste tuple {kinetic, [...]} development.config boss.config contains list of configurations erlang applications.

more general configuration files

in each application depends on configuration can see code application:get_env(app, key) or application:get_env(app, key, somedefault). it's in fact call application_controller briefly manages application loading/unloading/starting/stoping , keeps informations it. can check how knows io:format("~n~p~n",[ets:tab2list(ac_tab)]). these taken .app files in ebin/ directory generated rebar app.src in src/ during compilation.

the interesting key in .app.src env should contain default configuration application loaded first , of values overridden system config boss.config.

when playing kinetic in it's development environment starting erl -pa ebin -pa deps/*/ebin -s inets -s crypto -s ssl -s lhttpc -config development -s kinetic -config passed system config , overridde default environment values in case not specified , defaults resolved after application started in kinetic_config.erl @ lager.app.src , compare 1 within boss.config. see how tweak it. let's start colouring logs ;)

from official documentation: configuring application , config


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -