03/03/2021, 7:05 PM
If I want to generate a Cloudwatch Dashboard that aggregates all lambda function, should the approach I take be to use the AWS SDK to collect the function names? I’m not sure I should be updated 20+ projects to start exporting the Lambda Ids to be used as stackoutputs. Or does Pulumi have another way to collect ids of resources Pulumi manages?


03/04/2021, 2:55 AM
Right now StackReference only exposes the outputs, not all the resources. So if you wanted to get these from other stacks that way - you’d need to make the function names stack exports. It may well make sense to expand StackReference to get details of resources other than the stack outputs. If you have some way to identify which functions you want, using the AWS SDK directly is certainly an option.


03/04/2021, 2:06 PM
Yeah, I would use the tags I’ve autotagged my resources with