Created
March 22, 2018 12:54
-
-
Save felipeamarante/4f9a9454be6a5f472108429740232534 to your computer and use it in GitHub Desktop.
Ship EC2 Linux user-data logs to console
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -xe | |
exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1 | |
# Your wonder code below | |
echo "hello flat earth believers" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment