diff --git a/cloud/aws/deploy/service.go b/cloud/aws/deploy/service.go index 40e6093c6..c2e7aef72 100644 --- a/cloud/aws/deploy/service.go +++ b/cloud/aws/deploy/service.go @@ -224,7 +224,9 @@ func (a *NitricAwsPulumiProvider) Service(ctx *pulumi.Context, parent pulumi.Res a.lambdas[name], err = awslambda.NewFunction(ctx, name, &awslambda.FunctionArgs{ // Use repository to generate the URI, instead of the image, using the image results in errors when the same project is torn down and redeployed. // This appears to be because the local image ends up with multiple repositories and the wrong one is selected. - ImageUri: pulumi.Sprintf("%s:latest", repo.RepositoryUrl), + // XXX: Reverted change for the above comment as lambda image deployments were not rolling forward (under tag latest) + // causing intermittent deployment and runtime failures + ImageUri: image.URI(), MemorySize: pulumi.IntPtr(typeConfig.Lambda.Memory), Timeout: pulumi.IntPtr(typeConfig.Lambda.Timeout), PackageType: pulumi.String("Image"),