Hi - I have a pretty simple task that I can’t seem...
# aws
b
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
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
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
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.