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.
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.
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
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.