amazon web services - Elastic Beanstalk: dictionary update sequence element #0 has length 1; 2 is required -
we had working elastic beanstalk environment, after adding config file, we've started getting error during deploy:
error occurred during build: dictionary update sequence element #0 has length 1; 2 required
the config file looks this:
# .ebextentions/seed.config container_commands: 01_set_tenant_gateway: command: rake db:seed:set_tenant_gateway leader_only: true env: our-env
the log gives this:
2015-04-09 18:27:48,220 [debug] running command seed_tenant_gateway 2015-04-09 18:27:48,220 [debug] generating defaults command seed_tenant_gateway <<<
2015-04-09 18:27:48,405 [debug] running test command seed_tenant_gateway 2015-04-09 18:27:48,406 [error] unhandled exception during build: dictionary update sequence element #0 has length 1; 2 required traceback (most recent call last): file "/opt/aws/bin/cfn-init", line 122, in worklog.build(detail.metadata, configsets) file "/usr/lib/python2.6/site-packages/cfnbootstrap/construction.py", line 117, in build contractor(metadata).build(configsets, self) file "/usr/lib/python2.6/site-packages/cfnbootstrap/construction.py", line 502, in build self.run_config(config, worklog) file "/usr/lib/python2.6/site-packages/cfnbootstrap/construction.py", line 511, in run_config cloudformationcarpenter(config, self._auth_config).build(worklog) file "/usr/lib/python2.6/site-packages/cfnbootstrap/construction.py", line 247, in build changes['commands'] = commandtool().apply(self._config.commands) file "/usr/lib/python2.6/site-packages/cfnbootstrap/command_tool.py", line 84, in apply testresult = processhelper(test, env=env, cwd=cwd).call() file "/usr/lib/python2.6/site-packages/cfnbootstrap/util.py", line 397, in init self._env = dict(env) valueerror: dictionary update sequence element #0 has length 1; 2 required
what might going on here?
1) syntax env key:
env: <variable name>: <variable value>
2) also, need enclose command in quotes:
command: "<command run>"
from http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customize-containers-ec2.html