Comment 4 for bug 461156

Revision history for this message
Thierry Carrez (ttx) wrote : Re: User data is not base64 decoded before being presented to the instance

In my reproduction test I retrieve a string that is base64'd two times:

$ ssh -i mykey.priv ubuntu@192.168.0.230 'wget -q http://169.254.169.254/latest/user-data -O -'; echo
SXlFdlltbHVMM05vQ21WamFHOGdQVDA5UFQwOVBUMDlJRWhGVEV4UElEMDlQVDA50

Which base64-decodes to:
IyEvYmluL3NoCmVjaG8gPT09PT09PT09IEhFTExPID09PT09

Which base-64 decodes to:
#!/bin/sh
echo ========= HELLO =====