To get the most value out of the following, you should have a basic understanding of shell scripting, and a New Relic account that you can test with.
- New Relic CLI version 0.14.0 or later
- New Relic Account
- Application reporting to New Relic
The CLI also has build-in help, simply run newrelic help
to get more
information.
- These labs require that you already have a New Relic agent deployed. If you don't have New Relic integrated yet, check out New Relic's introduction documentation to get started there, then head back over here to get started with the New Relic Terraform Provider using the examples provided.
- Install the New Relic CLI and read the getting started guide. This guide will assume a basic understanding of shell scripting.
- Locate your Personal API key by following New Relic's Personal API key docs.
You can either create a profile for yourself, or store secrets in Environment variables. Note: Environment variables take precedence! If you're having unexpected access issues, ensure that the environment is set correctly or unset!
export NEW_RELIC_API_KEY=
export NEW_RELIC_ACCOUNT_ID=
export NEW_RELIC_REGION="US" # or "EU"
# Optional
export NEW_RELIC_INSIGHTS_INSERT_KEY=