The newrelic
user configuration has the following schema:
{
"credentials": {
"newrelic": {
"licenseKey": "my_license_key",
"nrPersonalApiKey": "my_personal_api_key",
"insightsInsertApiKey": "my_insigths_insert_api_key",
"accountId": "my_account_id",
"accountRootId": "my_account_root_id",
"nrRegion": "US"
}
}
}
To set any of the value referenced above, follow the steps below.
The deployer requires your New Relic license key to make changes to your account. Read the official New Relic documentation to learn how to obtain your license key.
The deployer uses your Personal API key to make requests to New Relic's APIs on behalf of your account. Read the official New Relic documentation to learn how to obtain a Personal API key.
The deployer uses your Insert API key to manage logs in New Relic. Read the official New Relic documentation to learn how to obtain an Insert API key.
The deployer requires your New Relic account ID to make changes to your account. Read the official New Relic documentation to learn how to obtain your account ID.
The deployer uses your account's root ID for handling agent data coming from AWS Lambda. To find your root Id:
- Log in to New Relic
- Expand the username drop down in the top right corner, and click on
Account settings
- If your account is a sub-account, you should see specific copy "Sub-account information for [account name]" with smaller text below "This account belongs to [root account name]". Click "[root account name]". If your account is not a sub-account, use the same value you used for
accountId
. - Once you're on the root account, notice the integer after the
/accounts/
part of the URL. That integer is youraccountRootId
.
Typically, your New Relic region is US
. If you know that your account is in a specific region, use that region value instead.
All possible regions are listed below:
US
EU
AP