most-napkin-55076
11/23/2023, 1:04 PMpulumi config get <config-name> --stack ${{ inputs.stack-environment }} --cwd $PROJECT_ROOT
during a pull request workflow on Github, but it returns and error that the stack name wasn't found.
If I run the same command locally, also without running up
first, it properly fetches the config from my stack file. Does anyone knows why this is and possiblylittle-cartoon-10569
11/23/2023, 8:23 PMpulumi login
?
When you say "All the stack-files are present in the code base", do you mean the Pulumi.<stackName>.yaml file? That's not the stack file; the stack file will be in the Pulumi app, S3, or something like that.most-napkin-55076
11/24/2023, 1:01 PMlittle-cartoon-10569
11/26/2023, 7:29 PM--stack
doesn't match the name in the Pulumi app. The config files aren't relevant for that error. Maybe there's a missing quote, or a missing org name, or something? You'll have to debug the invocation, Maybe you could put pulumi stack ls
in your CI pipeline / workflow, just before the command that isn't working, to see what stacks exist. Perhaps the stack exists but isn't available to the user that owns the auth key that the pipeline is using?most-napkin-55076
11/27/2023, 6:55 AM