-
-
Save tapincugur/d00f603d63e66186c0c64356acc01c7c to your computer and use it in GitHub Desktop.
New Relic Infrastructure Server Config file for AWS Elastic Beanstalk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
files: | |
"/home/ec2-user/new_relic_servers_setup.sh": | |
mode: "000755" | |
owner: root | |
group: root | |
content: | | |
#!/usr/bin/env bash | |
printf "license_key: $NEW_RELIC_LICENSE_KEY" | sudo tee /etc/newrelic-infra.yml | |
printf "[newrelic-infra]\nname=New Relic Infrastructure\nbaseurl=http://download.newrelic.com/infrastructure_agent/linux/yum/el/6/x86_64\nenable=1\ngpgcheck=0" | sudo tee /etc/yum.repos.d/newrelic-infra.repo | |
yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra' | |
sudo yum install newrelic-infra -y | |
container_commands: | |
set_up: | |
command: /home/ec2-user/new_relic_servers_setup.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment