How do I use the result from the AWS resource_arns query

Using v6.2.5 and the CloudWatch datasource.
I’m trying to get a list of lambda functions that my team administer using templating.
I can get a list using the resource_arns query
image
The result is.
arn:aws:lambda:eu-west-1:accountNumber:function:functionName
image
I don’t understand how I can now take this arn and use it in a panel query which requires the name of the function, not the arn.
Can anyone help?

After many attempts I’ve finally got the regex query needed to extract the lambda function name from the arn.

/.function:([^"]).*/

this get all function names: /.:function:(.*)/

1 Like