When I try to pull user-data *manually* from inside the instance -- it is not corrupted:
ubuntu@vivid-20150224:~$ wget -O - http://169.254.169.254/latest/user-data | zcat
--2015-02-25 11:47:26-- http://169.254.169.254/latest/user-data Connecting to 169.254.169.254:80... connected. HTTP request sent, awaiting response... 200 OK Length: 85 [text/html] Saving to: 'STDOUT'
100%[================================================>] 85 --.-KB/s in 0s
2015-02-25 11:47:27 (15.8 MB/s) - written to stdout [85/85]
#!/bin/sh echo "$(date -R)" === HELLO WORLD === | tee -a /run/my.log"
When I try to pull user-data *manually* from inside the instance -- it is not corrupted:
ubuntu@ vivid-20150224: ~$ wget -O - http:// 169.254. 169.254/ latest/ user-data | zcat
--2015-02-25 11:47:26-- http:// 169.254. 169.254/ latest/ user-data 169.254: 80... connected.
Connecting to 169.254.
HTTP request sent, awaiting response... 200 OK
Length: 85 [text/html]
Saving to: 'STDOUT'
100%[== ======= ======= ======= ======= ======= ======= ====>] 85 --.-KB/s in 0s
2015-02-25 11:47:27 (15.8 MB/s) - written to stdout [85/85]
#!/bin/sh
echo "$(date -R)" === HELLO WORLD === | tee -a /run/my.log"