Channels
esc
welcome
pulumi-cdk
cloudengineering
yaml
blog-posts
localstack
pulumi-ai
package-authoring
policy-as-code
pulumiup-booth-support
oracle-cloud-infrastructure
learn-pulumi-events
linen
registry
built-with-pulumi
pulumi-cloud
contribex
testingtesting321
hacktoberfest
pulumi-crosscode
content-share
finops
multi-language-hackathon
office-hours
workshops
gitlab
general
pulumi-kubernetes-operator
jobs
pulumi-deployments
dotnet
aws
golang
announcements
java
pulumiverse
python
install
getting-started
cloudengineering-support
testingtesting123
hackathon-03-19-2020
typescript
google-cloud
contribute
azure
kubernetes
docs
automation-api
status
Powered by
#automation-api
Title
# automation-api
b
brash-hairdresser-60389
03/07/2023, 1:41 PM
Hello Channel, do you know if there is documentation about the structure and possible values of the error for automation API? I’m looking for the doc about the
CommandError
to understand what could the possible output of the
message
could be and the
cause
l
lemon-agent-27707
03/07/2023, 2:52 PM
there is an issue open to improve the experience around structured errors in automation API. The http server examples (available most languages) have some examples of handling errors:
https://github.com/pulumi/automation-api-examples/blob/main/go/pulumi_over_http/main.go#L83
Probably the best source for existing error handling is looking at the SDK for the language of your choice, but there are docs for these SDKs as well:
https://github.com/pulumi/pulumi/blob/master/sdk/go/auto/errors.go
https://pkg.go.dev/github.com/pulumi/pulumi/sdk/v3/go/auto#IsCreateStack409Error
Post