CloudWatch Logs is a log aggregation service by Amazon you can use to send your logs to. It's very useful to keep some logs centralized, share access to them, receive alarms when errors happen, or simply store them safely. We'll see how to create a CloudWatch Log group and use it to stream logs from a Docker container logs inside it.
To step through this recipe, you will need the following:
Let's say we want the log group to be named
docker_logs, and that we want to keep those logs ...