https://pulumi.com logo
#getting-started
Title
# getting-started
h

happy-baker-56151

01/19/2024, 4:44 PM
I've used pulumi in the past and I loved how easy it was to get up and running. I'm trying to use pulumi for a new project and have been struggling getting deployments automated via github actions. Everything works when doing
pulumi up
locally however no matter what I try using github actions I keep getting an error:
Copy code
pulumi:pulumi:Stack (api-dev):
    error: Missing required configuration variable 'api:env-name'
    	please set a value using the command `pulumi config set api:env-name <value>`
Running that command does update my Pulumi.dev.yaml file to prefix all variables with "api:" however the program running in github actions still gives that error.
I've tried all sorts of combinations, different access tokens (personal and team), using the GH action to just install the pulumi cli and doing all the commands directly, nothing seems to work.
Finally got to the bottom of it: I had named my stack file
pulumi.dev.yaml
initially, this seemed to work fine locally but at some point I changed the casing to capital "P"
Pulumi.dev.yaml
and git didn't detect the change. GitHub actions then couldn't find the stack file when the file was lowercase. 🤦
Now changing to the correct casing its working....