ec2-run-user-data should save script output
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu on EC2 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
AMI: ami-814aaee8 (official Ubuntu 8.10 Intrepid 32-bit beta AMI)
Tracking down user-data script problems is nearly impossible without having the output from the user-data script available after the EC2 instance has started.
The ec2-run-user-data program should save the output of the script somewhere accessible or output it with reasonable prefixes to syslog.
The original ec2-run-user-data bash program sends the output of the script to /var/log/syslog with a "user-data" prefix and suitable begin/end markers as well as showing the exit code of the script.
http://
This code is in production use. Feel free to copy more of its functionality or to use it in its entirety.
I have fixed this locally and it will be available for the next beta.