lively-mouse-65447
03/17/2025, 10:16 PMaws.cloudfront.Function
from @pulumi/aws
When I then try to pass the function ARN to the CloudFront distribution, I get error:
InvalidLambdaFunctionAssociation: The function ARN must reference a specific function version. (The ARN must end with the version number.)
I set to the function publish: true
so that it gets published automatically.
But I don’t see where to take the latest version number. Any clue?
I checked also the native provider, but also no luck there.
It seems that without the version number I can’t connect the function to any distribution, which seems quite odd to me.
How is it supposed to be done? 🙂little-cartoon-10569
03/17/2025, 10:30 PMlambdaFunctionAssociations
property? If you are, try using the functionAssociations
property instead.little-cartoon-10569
03/17/2025, 10:31 PMaws.lambda.Function
.lively-mouse-65447
03/17/2025, 10:56 PMlively-mouse-65447
03/18/2025, 8:57 AMfunctionAssociations
• lambdaFunctionAssociations