This message was deleted.
# aws
s
This message was deleted.
m
Copy code
lambdaFunctionApi.name.apply(
  lambdaFunctionName =>
    new aws.cloudwatch.LogGroup(`${appName}-function-api-lg`, {
      name: `/aws/lambda/${lambdaFunctionName}`,
      retentionInDays: 14,
    }),
);
l
It looks like that could be rewritten thus:
Copy code
new aws.cloudwatch.LogGroup(`${appName}-function-api-lg`, {
  name: pulumi.interpolate`/aws/lambda/${lambdaFunctionApi.name}`,
  retentionInDays: 14,
});
c
❤️ thanks! will try it out