Closed jrobison-sb closed 10 months ago
Nevermind, I'm unblocked.
Apparently the API key needs to be a User key
, not a LICENSE - INGEST
key. User
keys apparently will have a NRAK
prefix.
But... why?
Key documentation clearly states that user keys are not for that.
What madness is this?
Description
I'm attempting to use this role to install the New Relic infrastructure agent, and I have supplied my API key and my account ID, but I'm getting
Invalid credentials provided. Missing API key or an invalid API key was provided
when it gets to theRun CLI install
task.Steps to Reproduce
Expected Behavior
The Ansible role should install the agent without error.
Relevant Logs / Console output
Your Environment
Additional context
When I run this role in verbose mode using
ansible-playbook -vvv
, I can see in the verbose output that account ID and the API key are both being passed as environment variables and they appear to be the correct values. Eg:I have obviously redacted my account number and API key in this issue. But both match what is displayed in https://one.newrelic.com/admin-portal/api-keys/home. The API key type is
INGEST - LICENSE
.How can I troubleshoot this?
Thanks.