# ec2\_ami\_copy not supporting encryption

**URL:** <https://forum.ansible.com/t/ec2-ami-copy-not-supporting-encryption/23562>\
**Category:** Ansible Project\
**Created:** [January 26, 2017, 4:39am UTC](https://forum.ansible.com/t/ec2-ami-copy-not-supporting-encryption/23562 "2017-01-26T04:39:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![challa.tek](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@challa.tek](https://forum.ansible.com/u/challa.tek)\
**Post date:** [January 26, 2017, 4:39am UTC](https://forum.ansible.com/t/ec2-ami-copy-not-supporting-encryption/23562/1 "2017-01-26T04:39:19Z")

</div>

**my task:**

- ec2\_ami\_copy:  
source\_region: us-east-1  
region: us-east-1  
source\_image\_id: “{{ ami\_find.results[0].ami\_id }}”  
wait: yes  
encrypted: yes  
tags:  
Name: “{{ unencrypted\_ami\_name }}”  
encrypted: yes

**Error:**

fatal: [localhost]: FAILED! =\> {  
“changed”: false,  
“failed”: true,  
“invocation”: {  
“module\_args”: {  
“aws\_access\_key”: null,  
“aws\_secret\_key”: null,  
“description”: “”,  
“ec2\_url”: null,  
“encrypted”: true,  
“kms\_key\_id”: null,  
“name”: null,  
“profile”: null,  
“region”: “us-east-1”,  
“security\_token”: null,  
“source\_image\_id”: “ami-3ee3fb29”,  
“source\_region”: “us-east-1”,  
“tags”: {  
“Name”: “”,  
“encrypted”: true  
},  
“validate\_certs”: true,  
“wait”: true,  
“wait\_timeout”: “1200”  
},  
“module\_name”: “ec2\_ami\_copy”  
},  
“msg”: “UnknownParameter: The parameter Encrypted is not recognized”
