This message was deleted.
# general
s
This message was deleted.
i
here’s what i’ve used successfully
Copy code
LambdaFunctionAssociations: cloudfront.DistributionDefaultCacheBehaviorLambdaFunctionAssociationArray{
					&cloudfront.DistributionDefaultCacheBehaviorLambdaFunctionAssociationArgs{
						EventType: pulumi.String("viewer-request"),
						LambdaArn: pulumi.Sprintf("%s:%s", lambdaFunc.Arn, lambdaFunc.Version),
					},
				},
b
That's basically what I tried but with pulumi.concat, the problem is my function has no versions so the version ends up being
:$LATEST
which cloudfront doesn't accept. I am now trying with
publish: true
that seemed to do it, I will need to retry with an empty stack since I only did an update
i
right; have to publish a version