https://github.com/veewee/docker-tail-cloudwatch-logs
A docker container that makes it possible to tail your AWS cloudwatch logs.
https://github.com/veewee/docker-tail-cloudwatch-logs
Last synced: over 1 year ago
JSON representation
A docker container that makes it possible to tail your AWS cloudwatch logs.
- Host: GitHub
- URL: https://github.com/veewee/docker-tail-cloudwatch-logs
- Owner: veewee
- License: mit
- Created: 2016-01-16T10:43:29.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-16T11:05:19.000Z (over 10 years ago)
- Last Synced: 2025-02-01T00:57:46.173Z (over 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker tail cloudwatch logs
This container provides an easy way to tail cloudwatch logs in your terminal.
Internally it runs a slightly altered version of the node application
[cloudwatch-logs-tail](https://github.com/liamoehlman/cloudwatch-logs-tail.git).
## Config file
For cnnecting with AWS, a config.json needs to be added to the container:
```js
// config.json
{
"accessKeyId": "aws-acceskeyid",
"secretAccessKey": "aws-secretAccessKey",
"region": "eu-west-1"
}
```
## Run
Running the container is done with following command:
```sh
docker run -ti --rm \
--name=tailcloudwatch-logs \
-v "$PWD/config.json":"/app/config.json" \
-e LOG_GROUP_NAME=aws-cloudwatch-logs-group-name \
-e LOG_STREAM_NAME=aws-cloudwatch-logs-stream-name \
veewee/tail-cloudwatch-logs
```
### Volumes
- **config.json**: Your aws config file needs to be synced to the `/app/config.json` file in the container.
### Envorinment variables
- **LOG_GROUP_NAME**: The name of a group in cloudwatch logs.
- **LOG_STREAM_NAME**: The name of a stream in cloudwatch logs.
## Building the container
```
docker build --no-cache -t veewee/tail-cloudwatch-logs .
```