Public | Automated Build

Last pushed: 5 months ago
Short Description
ubuntucwlogs
Full Description

Ubuntu 14.04 base with Cloud Watch (AWS & Non-AWS)

This Docker Base requires one of the following

  1. Credentials files added at /root/.aws/credentials

  2. The ECS Instance launched with IAM Role assigned

  3. The AWS Access Keys passed via the following environment variable at runtime

    CW_LOGS_AWS_API_KEY

    CW_LOGS_AWS_API_SECRET

Atleast one of the above should be present or else the docker will fail.

Note: Ensure that the IAM user has proper Cloud Watch Access rights to put Logs.

Edit the AWS_REGION Environment in Dockerfile to required Cloud Watch AWS Region before building
Edit the etc/awslogs.conf to fit the application log

Default Syslog Configuration

[syslog]
datetime_format='%b %d %H:%M:%S'
file = /var/log/syslog
buffer_duration = 5000
log_stream_name = LOG_STREAM_NAME
initial_position = start_of_file
log_group_name = syslog

Docker Pull Command
Owner
dsbconsulting
Source Repository