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 =====
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 vQ21WamFHOGdQVD A5UFQwOVBUMDlJR WhGVEV4UElEMDlQ VDA50
SXlFdlltbHVMM05
Which base64-decodes to: jaG8gPT09PT09PT 09IEhFTExPID09P T09
IyEvYmluL3NoCmV
Which base-64 decodes to:
#!/bin/sh
echo ========= HELLO =====