{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1134","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1134/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1134/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1134/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/1134","id":68257829,"number":1134,"title":"ec2 module cannot create encrypted volumes","user":{"login":"jbrendel","id":233741,"avatar_url":"https://avatars.githubusercontent.com/u/233741?v=3","gravatar_id":"","url":"https://api.github.com/users/jbrendel","html_url":"https://github.com/jbrendel","followers_url":"https://api.github.com/users/jbrendel/followers","following_url":"https://api.github.com/users/jbrendel/following{/other_user}","gists_url":"https://api.github.com/users/jbrendel/gists{/gist_id}","starred_url":"https://api.github.com/users/jbrendel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbrendel/subscriptions","organizations_url":"https://api.github.com/users/jbrendel/orgs","repos_url":"https://api.github.com/users/jbrendel/repos","events_url":"https://api.github.com/users/jbrendel/events{/privacy}","received_events_url":"https://api.github.com/users/jbrendel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/feature_idea","name":"feature_idea","color":"006b75"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/P3","name":"P3","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-14T04:18:23Z","updated_at":"2016-06-07T09:00:54Z","closed_at":"2015-06-18T04:53:22Z","body":"While with the ec2_vol module encrypted volumes can be created, the 'built-in' volume specification in the ec2 module does not allow for it. The 'encrypted' attribute can be set, but it's ignored.\r\n\r\nExample:\r\n\r\n    - ec2:\r\n        instance_type: m3.medium\r\n        image: ami-123456\r\n        volumes:\r\n          - device_name: /dev/sdb\r\n            device_type: gp2\r\n            volume_size: 100\r\n            encrypted: true\r\n\r\nHowever, the created volume will not be encrypted.\r\n\r\nFortunately, the fix is very straight forward:\r\n\r\nIn cloud/amazon/ec2.py, at the end of create_block_device() add this parameter to the \"return BlockDeviceType(....) call:\r\n\r\n    ...\r\n    encrypted=volume.get('encrypted', False),\r\n    ....\r\n\r\nI confirmed locally that this produces an encrypted volume.\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/224221354","html_url":"https://github.com/ansible/ansible-modules-core/issues/1134#issuecomment-224221354","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1134","id":224221354,"user":{"login":"vazhnov","id":478771,"avatar_url":"https://avatars.githubusercontent.com/u/478771?v=3","gravatar_id":"","url":"https://api.github.com/users/vazhnov","html_url":"https://github.com/vazhnov","followers_url":"https://api.github.com/users/vazhnov/followers","following_url":"https://api.github.com/users/vazhnov/following{/other_user}","gists_url":"https://api.github.com/users/vazhnov/gists{/gist_id}","starred_url":"https://api.github.com/users/vazhnov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vazhnov/subscriptions","organizations_url":"https://api.github.com/users/vazhnov/orgs","repos_url":"https://api.github.com/users/vazhnov/repos","events_url":"https://api.github.com/users/vazhnov/events{/privacy}","received_events_url":"https://api.github.com/users/vazhnov/received_events","type":"User","site_admin":false},"created_at":"2016-06-07T09:00:54Z","updated_at":"2016-06-07T09:00:54Z","body":"Still not working in Ansible 1.9.5.\r\nIf I applied patch manually, it is worked."}}
{"actor":{"display_login":"vazhnov"}}