Hello, I use Automation API in one of my program. ...
# automation-api
c
Hello, I use Automation API in one of my program. It worked well locally (not yet in production). I didn't run the program from a while and now when I run the Automation API part, I got an error "error: could not create stack: provided project name "xxx" doesn't match Pulumi.yaml." I don't know why I got this kind of errors now, I am not suppose to create a Pulumi.yaml file or to create the project by myself. Any ideas ?
f
somewhere in your automation you're running
pulumi
in a Pulumi workspace where the
name
in the
Pulumi.yaml
doesn't match the workspace
c
I do not see any `Pulumi.yaml`in my project
f
i'm making assumptions here, but yeah you wouldn't in your Automation API project but I assume that is then opening a Pulumi workspace elsewhere?
c
Is there a way to know the
Pulumi.yaml
found by Automation ?
f
good question - yes, in your automation api program you can set a few options for debugging; trying to find the doc for this but e.g. https://github.com/pulumi/pulumi-dotnet/blob/f359112840bced9a8f5a77c2013c2990dc734c9b/sdk/Pulumi.Automation/UpdateOptions.cs#L53
c
I found the root cause. I change the projectName, I added the org name as a prefix of the project name.
I remove it and it seems to run the stack
Thank you for your support @future-hairdresser-70637
f
Aha! Glad you got it working! high five