I have AWS EC2 with CloudWatch set up as described here.
My web server is docker-compose based one. How to it configure CloudWatch and call logging? Note: I did not set up ECS in AWS.
I have AWS EC2 with CloudWatch set up as described here.
My web server is docker-compose based one. How to it configure CloudWatch and call logging? Note: I did not set up ECS in AWS.
Copyright © 2021 Jogjafile Inc.
So i found that it's easy enough to use python's watchtower and configure my docker-compose.yml as follows:
Then in you py file, add these lines:
Then you can simply add a line like this:
And you can see all your logs in your console's CloudWatch/LogGroups/my-group/my-group-stream