6

Ansible Error with AWS, AMI Creation and Encrypted

 3 years ago
source link: https://fuzzyblog.io/blog/aws/2017/03/14/ansible-error-with-aws-ami-creation-and-encrypted.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Ansible Error with AWS, AMI Creation and Encrypted

Mar 14, 2017

Here is a bizarre Ansible / AWS error I just found:

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TypeError: __init__() got an unexpected keyword argument 'encrypted'
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Traceback (most recent call last):\n  File \"/tmp/ansible_prCPvG/ansible_module_ec2_ami.py\", line 560, in <module>\n    main()\n  File \"/tmp/ansible_prCPvG/ansible_module_ec2_ami.py\", line 552, in main\n    create_image(module, ec2)\n  File \"/tmp/ansible_prCPvG/ansible_module_ec2_ami.py\", line 381, in create_image\n    bd = BlockDeviceType(**device)\nTypeError: __init__() got an unexpected keyword argument 'encrypted'\n", "module_stdout": "", "msg": "MODULE FAILURE"}

A quick google revealed this solution:

pip install boto –upgrade

which I had to execute as:

sudo pip install boto –upgrade


Posted In: #aws


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK