I'm trying to add user data to my auto scaling on AWS.
When I setup my launch configuration through the web console on AWS I entered the following user data:
#!/bin/bash
echo $RANDOM > /home/ubuntu/clusterID
I had to base64 encode it, I did that with base64encode.org. The result:
IyEvYmluL2Jhc2gNCmVjaG8gJFJBTkRPTSA+IC9ob21lL3VidW50dS9jbHVzdGVySUQ=
When the ec2 instance launches I see the following error:
2015-02-24 07:50:08,754 - init.py[WARNING]: Unhandled non-multipart userdata starting 'IyEvYmluL2Jhc2gNCmVjaG8g...'
Any ideas what I'm doing wrong?
Aucun commentaire:
Enregistrer un commentaire