buttonmen-dev / buttonmen

Buttonmen - an online dice game
Other
16 stars 23 forks source link

Use ECS awslogs driver to log startup script output to cloudwatch #2929

Closed cgolubi1 closed 4 months ago

cgolubi1 commented 4 months ago

Working test site at https://2908-cloudwatch-logs.cgolubi1.dev.buttonweavers.com/

In cloudwatch logs, i have a logstream 2908-cloudwatch-logs.cgolubi1.dev.buttonweavers.com/buttonmen/8b45298b5efc4c4dbc85b2da6e07e30b with contents:

timestamp,message
1708390751890,'"+ /etc/init.d/rsyslog start"
1708390751919, * Starting enhanced syslogd rsyslogd
1708390752041,   ...done.
1708390752041,'"+ /etc/init.d/cron start"
1708390752047, * Starting periodic command scheduler cron
1708390752052,   ...done.
1708390752052,'"+ /etc/init.d/ssh start"
1708390752170, * Starting OpenBSD Secure Shell server sshd
1708390752190,   ...done.
1708390752223,'"+ /etc/init.d/postfix start"
1708390752226, * Starting Postfix Mail Transport Agent postfix
1708390753230,   ...done.
1708390753231,'"+ /etc/init.d/apache2 start"
1708390753236, * Starting Apache httpd web server apache2
1708390754929, * 
1708390754930,'"+ '[' -f /etc/init.d/mysql ']'"
1708390754930,'"+ /etc/init.d/mysql start"
1708390755040, * Starting MySQL database server mysqld
1708390759637,   ...done.
1708390759643,'"+ sleep infinity"
blackshadowshade commented 4 months ago

CircleCI passes. Files changed have to do with deployment. Test site looks somewhat functional.

Merging now.