2
votes

In AWS cloudformation template is there a way to get a list of lambda arns similar to how you can get sns arns?

"Ref" : "AWS::NotificationARNs"

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/pseudo-parameter-reference.html

1
is this what you're looking for ?Frederic Henri
yes a list of those arns or function-names.Nelson

1 Answers

1
votes

In a CloudFormation template, you can use GetAtt to get the ARN of a specific Lambda. Example:

"Resources": {
  "mylambda": {
    "Type": "AWS::Lambda::Function",
    "Properties": {
      ...
    }
  }
},
"Outputs": {
  "mylambdaArn": {
    "Value": {
      "Fn::GetAtt": ["mylambda", "Arn"]
    }
  }
}

There's no way to get a list of all Lambda ARNs directly. However, you could create a list ahead of time and pass them in as a parameter.