https://pulumi.com logo
#aws
Title
b

brave-glass-69448

07/18/2023, 9:42 PM
Hi - I have a pretty simple task that I can’t seem to find an example for. I want to use a Pulumi project with AWS to pull data from an API service (via lambda function, step function, or other aws service) and store the returned JSON into a database (lets say DynamoDB). Can anyone refer me to an example? In particular I am not finding anything for pulling data from an API service.
l

little-cartoon-10569

07/18/2023, 10:26 PM
That isn't a Pulumi action. You'll need to write that using the normal AWS SDK.
Pulumi is for configuring and creating infrastructure, not using it.
b

brave-glass-69448

07/19/2023, 12:45 AM
Yes but if I’m constantly redeploying my stacks with Pulumi, don’t I need to be building and rebuilding my lambda from Pulumi?
If I build the lambda apart from Pulumi I’m just going to have two sources of truth for my infrastructure
l

little-cartoon-10569

07/19/2023, 1:00 AM
You can put the lambda code in (or beside) your Pulumi code, but it's still not a Pulumi library call that you need to make. It's an AWS SDK call.