This message was deleted.
# aws
s
This message was deleted.
l
There is no Pulumi-native way to do this. You would have to use the AWS SDK to get the information.
👋 1
w
how do I get this to pull from the current alias instead of overriding with "1" each time I pulumi up?
If I understand your scenarios correctly - I believe you can use https://www.pulumi.com/docs/reference/pkg/aws/lambda/getfunction/#version_nodejs.
Copy code
const lambdaAlias = new aws.lambda.Alias("DEV", {
    functionName: routeKey + "DEV",
    functionVersion: aws.lambda.getFunction({functionName: routeKey + "DEV"}).version,
});
l
That's my learn for the day. I'm off home now.
😉 1