how to install newrelic agent on aws linux code example
Example: how to install newrelic agent on aws linux
#!/bin/bash
echo "license_key: 3fdc681c1bba59de01010f1a46d82cf18999e8d2" | sudo tee -a /etc/newrelic-infra.yml
sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/7/x86_64/newrelic-infra.repo
sudo yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'
sudo yum install newrelic-infra -y