"user_data" doesn't work in kitchen-ec2

I’m trying to use “user_data” for a simple one-liner in my .kitchen.yml, but it doesn’t work - I got “init.py[WARNING]: Unhandled non-multipart” error into cloud-init.log.

I found similar question here, but w/o answers Test-kitchen/ec2 and user_data.

Any ideas?
TIA,
Vitaly

There is currently an open issue for a similar problem but I would need an example of what exactly you are trying to pass via user_data, please see https://github.com/test-kitchen/kitchen-ec2/issues/369 and add detail as appropriate . From my initial testing it seem kitchen-ec2 does pass the data correctly if a script file is present.

From my initial testing it seem kitchen-ec2 does pass the data correctly if a script file is present.
Thank you! I tried to use in-body one-liner, like "echo '* * * * * * date' | crontab -".