I guess this is some how related to the previous m...
# aws
I guess this is some how related to the previous message, but I still want to ask, is there any option to handle these type of Exceptions from AWS API? I wasn't able to catch this exception with regular
blocks inside my python code. Any pattern or suggestion? Thanks.
When the engine is doing its work, your code has already completed, so there's nowhere to put the try/catch to catch this. You can use automation-api, but I think that's no yet available in Python?
Oh ok, so is it possible to catch this using automation-api? cool. I think it's only an option for TypeScript and Golang today. I have basic Golang knowledge, I'll try it .. thanks
The automation-api python implementation is on the way (https://github.com/pulumi/pulumi/issues/5299#issuecomment-741234685) really excited about it 🙂
👍 1
It doesn't seem to be possible with automation-api either. Reading the implementation for golang (https://github.com/pulumi/pulumi/blob/master/sdk/go/x/auto/cmd.go), it uses the
package to run the pulumi binary, I don't think this is possible for now
I mean, with automation-api I can identify there was a runtime error (https://github.com/pulumi/pulumi/blob/master/sdk/go/x/auto/errors.go#L107) but I can't
the specific exception from AWS API
I guess I'll need to change the approach and extract the specific exception parsing the
from the