---
title: Unable to retrieve the New Relic license key
source: https://docs.newrelic.com/docs/serverless-function-monitoring/aws-lambda-monitoring/troubleshooting/retrieve-license
---

## Problem

You can't retrieve the New Relic license key `AccessDeniedException`.

## Solution

Your lambda code requires the execution role which has permission to read AWS Secrets Manager. If you find a log like the following, add the appropriate permission to the policy of the execution role. In our examples, check out the `template.yaml` file to see an easy way to grant this permission.

````bash
[output] Failed to retrieve license key AccessDeniedException: User: <ARN> is not authorized to perform: secretsmanager:GetSecretValue on resource: <ARN>
```

export const _frontmatter = {"title":"Unable to retrieve the New Relic license key","type":"troubleshooting","tags":["Serverless function monitoring","AWS Lambda monitoring","Troubleshooting"],"metaDescription":"Troubleshooting issues with using AWS Secrets Manager with New Relic.","freshnessValidatedDate":"never"}
````
