The URL (which happens to be a secret) gets read from Pulumi config and passed as an environment variable to the
aws.lambda.CallbackFunction
definition, then picked up at runtime by
process.env
as you have in your example. The main difference I see is that in my example, I’m defining the callback function as its own resource and setting the environment variables on it, then passing that function to the
onSchedule
handler.
g
gorgeous-ram-57119
12/08/2022, 1:45 AM
Thanks @miniature-musician-31262 I will check your example out later today
gorgeous-ram-57119
12/08/2022, 8:57 AM
@miniature-musician-31262 that is exactly what i was after, thanks so much
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.