ec2_ami_copy not supporting encryption

6 views
Skip to first unread message

chall...@gmail.com

unread,
Jan 25, 2017, 11:39:19 PM1/25/17
to Ansible Project
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"
Reply all
Reply to author
Forward
0 new messages