This message was deleted.
# aws
s
This message was deleted.
b
@kind-keyboard-17263 are you using Pulumi INSIDE your lambda function?
k
Yeah, I have read that it's not possible. I should use pulumi to orchestrate deployment, but in order to -say - use dynamodb, kinesis, i should use aws-sdk libs, right ?
b
You can do it, but you need to use the lambda container functionality
I can put an example together if it helps?
k
I have to pack the lambda in a docker image ? I have seen that option
b
Yeah, because you need the Pulumi cli as well
k
That'd be absolutely fantastic, thanks :)
But feel free to just point me to a (valid) example, don't wanna bother you 🙂
b
What are you specifically trying to deploy from inside the function?
k
Well, I have a few lambdas, but consider one lambda receiving an
event
payload which tries optimistically to store to dynamodb. I was also trying to write a second version, pushing the payload to kinesis
that endpoint should be used as an datapoint ingestion endpoint
b
Okay, I suspect there might be a disconnect on what Pulumi can do. It's not an SDK to store into dynamo or kineses, it's designed to provision infrastructure declaratively
k
Reasonable, I am learning but I am in a validation step, so I am a bit on the run
Thanks buddy!