I am using ec2 ami to create image of instance and getting error as above. Please help.
fatal: [127.0.0.1 -> localhost]: FAILED! => {
"changed": false,
"failed": true,
"invocation": {
"module_args": {
"aws_access_key": "xxxxxxxxxxxxxxxxxxxxxx",
"aws_secret_key": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"delete_snapshot": false,
"description": "",
"device_mapping": null,
"ec2_url": null,
"image_id": null,
"instance_id": "['i-xxxxxxxxxxxxxxxxxxx']",
"launch_permissions": null,
"name": "xxx-AMI",
"no_reboot": false,
"profile": null,
"region": "us-east-1",
"security_token": null,
"state": "present",
"tags": {
"Name": "newtest",
"Service": "TestService"
},
"validate_certs": true,
"wait": true,
"wait_timeout": "900"
},
"module_name": "ec2_ami"
},
"msg": "InvalidParameterValue: Value (['i-xxxxxxxxxxxxxxxx']) for parameter instance is invalid. Expected: 'i-...'."