ansible-elastic-beanstalk icon indicating copy to clipboard operation
ansible-elastic-beanstalk copied to clipboard

Missed VersionLabel key

Open uolter opened this issue 6 years ago • 0 comments

I am creating my cloud infrastructure in AWS with terraform and deploying the applications with ansible. Terraform allows me to create an environment without any version associated. Consequently, the VersionLabel key does not exist in Boto response.

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: KeyError: 'VersionLabel' fatal: [127.0.0.1 -> localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/tmp/ansible_HYWzTw/ansible_module_elasticbeanstalk_env.py\", line 411, in <module>\n main()\n File \"/tmp/ansible_HYWzTw/ansible_module_elasticbeanstalk_env.py\", line 375, in main\n updates = update_required(ebs, env, module.params)\n File \"/tmp/ansible_HYWzTw/ansible_module_elasticbeanstalk_env.py\", line 218, in update_required\n if params[\"version_label\"] and env[\"VersionLabel\"] != params[\"version_label\"]:\nKeyError: 'VersionLabel'\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1} The small changes I made prevent me from the error above and to deploy my first version in beanstalk.

uolter avatar Apr 19 '18 10:04 uolter