-
Notifications
You must be signed in to change notification settings - Fork 55
Description
Description
The documentation for newrelic-lambda subscriptions install says that the --function flag is "the AWS Lambda function name or ARN." However, passing the ARN always yields an error message.
newrelic-lambda subscriptions install --function arn:aws:lambda:us-east-1:{account id}:function:{function name} --no-aws-permissions-check
Error retrieving log subscription filters for 'arn:aws:lambda:us-east-1:{account id}:function:{function name}': An error occurred (InvalidParameterException) when calling the DescribeSubscriptionFilters operation: 1 validation error detected: Value '/aws/lambda/arn:aws:lambda:us-east-1:{account id}:function:{function name} at 'logGroupName' failed to satisfy constraint: Member must satisfy regular expression pattern: [.-_/#A-Za-z0-9]+
(Note: I have redacted our account id and function names from the above messages.)
Steps to Reproduce
See above.
Expected Behaviour
It should internally translate the function ARN to the function name when deriving the log group name, as implied by the documentation.
Relevant Logs / Console output
See above.
Your Environment
Running inside a docker container using version 0.1.22 of this CLI and version 1.18.16 of the AWS CLI.