elegant-pager-5412
04/26/2021, 9:03 AMCallbackFunction
) to send logs to CloudWatch? Can’t get it working 🤔shy-house-53993
04/26/2021, 12:10 PMAWSLambdaBasicExecutionRole
specified.elegant-pager-5412
04/26/2021, 12:12 PMaws.iam.ManagedPolicy.CloudWatchLogsFullAccess
policy, which isn’t ideal. I would love to be able to great a log group with specific retention daysAmaazonSQSFullAccess
shy-house-53993
04/26/2021, 12:12 PMelegant-pager-5412
04/26/2021, 12:12 PMOutput
objects to the policies
property on the CallbackFunction
shy-house-53993
04/26/2021, 12:13 PMaws.cloudwatch.onSchedule(
'rate(1 minute)',
new aws.lambda.CallbackFunction('get-team-leads', {
policies: [aws.iam.ManagedPolicy.AWSLambdaBasicExecutionRole, aws.iam.ManagedPolicy.AWSLambdaRole],
callback: async (e) => {
console.log('Running...');
elegant-pager-5412
04/26/2021, 12:14 PMshy-house-53993
04/26/2021, 12:14 PMelegant-pager-5412
04/26/2021, 12:14 PMshy-house-53993
04/26/2021, 12:14 PMelegant-pager-5412
04/26/2021, 12:15 PMshy-house-53993
04/26/2021, 12:15 PMelegant-pager-5412
04/26/2021, 12:15 PMred-match-15116
04/26/2021, 7:25 PMelegant-pager-5412
04/27/2021, 4:33 AMindex.ts
file with 600 lines of code as a production code. They would split the code and will also split the logic from the infrastructure, so I don’t expect to see actual handler code along with the infrastructure definitionred-match-15116
04/27/2021, 4:38 AMThey would split the code and will also split the logic from the infrastructure, so I don’t expect to see actual handler code along with the infrastructure definitionIt seems like you are looking for a very specific real world scenario that matches your exact use case. It is expected that users will decide what works best for them. The purpose of the examples is to demonstrate how Pulumi would fit into those scenarios, but we have built a purposefully generalized tool and providing examples for all possible use cases would be frankly impossible 😄
elegant-pager-5412
04/27/2021, 5:30 AM