https://pulumi.com logo
Title
f

few-carpenter-12885

11/18/2022, 3:56 PM
Is there a way to set an overall stack timeout? I see there is a way to set
customTimeouts
on each individual resource, but I was not able to find anything about an overall stack timeout. For my use-case, I'm wanting to run the automation API inside AWS Lambda - so I want to stay within the Lambda timeout.
b

brave-planet-10645

11/18/2022, 3:57 PM
No there isn’t. And be warned if you’re doing things like creating RDS instances that can take a while and can be costly
f

few-carpenter-12885

11/18/2022, 3:58 PM
Got it. Thanks for the call-out. The resources I'm spinning up usually take 5m -> only take longer in error scenarios.
b

brave-planet-10645

11/18/2022, 3:59 PM
I mean, 5 mins for a lambda can be quite pricey too 😉
f

few-carpenter-12885

11/18/2022, 3:59 PM
Very fair 😄
This is all part of evaluating where my Automation API calls will be deployed. I'll definitely be doing some comparisons.
b

brave-planet-10645

11/18/2022, 4:02 PM
If you’re deploying it in lambda because of the event triggers, can I suggest having a lambda (or step function) starting a fargate task?
f

few-carpenter-12885

11/18/2022, 4:05 PM
This is something I haven't explored yet. I've only done long-running services when using Fargate, but not using it for individual tasks triggered by a Lambda. The triggers from Lambda are a big factor though - sounds like I need to do some digging. Thanks 🙏
f

freezing-van-87649

11/18/2022, 4:18 PM
CodeBuild might be an option too
f

few-carpenter-12885

11/18/2022, 5:15 PM
Interesting thought. I'm already deploying CodeBuild via Pulumi. That'd be some serious inception 😄