User data Not working

Hi,

I am putting the below config in ec2_lc module for the server to run the script at the time of start.

user_data:
{
#!/bin/bash
source /home/centos/startup.sh
}

But It is not working.

It is giving me below error.

2017-08-15 16:12:46,441 - init.py[WARNING]: Unhandled non-multipart (text/x-not-multipart) userdata: ‘{'source /home/centos/st…’

Can someone please suggest where I am making a mistake?

Thanks,

Rohit