Skip to content

Instantly share code, notes, and snippets.

@begleynk
begleynk / 01_papertrail.config
Last active February 23, 2021 09:03
Setup Papertrail for Elastic Beanstalk
# This is an example .ebextensions config for setting up Papertrail with AWS Elastic Beanstalk, with the ability
# to access environment variables within the created config files.
# This is done by not directly creating /etc/log_files.yml, but by having a shell script create it for us:
#
# /home/ec2-user/create_log_file.sh (created in the "files" block)
# - Creates /etc/log_files.yml
# - Can include environment variables from the host
#
# The first container command (00_create_log_file_yml) will execute the script.
#