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

gentle-monitor-55086

06/30/2021, 4:31 PM
Anyone have a guide, tutorial, etc, of getting pulumi to play nice with SAM? It's painful to make a change, need to pulumi up -f, switch to postman/insomnia, make a request, go check the lambda logs, search for my debug output, repeat. At the same time i'm looking to totally minimize any friction between developing between pulumi and sam. I'm also fully open to a pulumi only solution for rapid development of lambda endpoints that i may have missed.
b

brave-planet-10645

06/30/2021, 4:35 PM
With regards to the logs, you could try using
pulumi logs
(https://www.pulumi.com/docs/reference/cli/pulumi_logs/). To test locally, take a look at these docs from AWS. It's not pulumi specific but you could test the lambdas using that (which is what I think SAM uses under the hood) and then deploy later on.
g

gentle-monitor-55086

06/30/2021, 4:41 PM
oh interesting, didn't know about the RIE, thanks!
2 Views