I'm new to Pulumi so I'm struggling at the moment trying to run it in my Azure release pipeline in order to create my infrastructure.
During development I've used the local storage to store my pulumi state (pulumi login --local
), I've created my stacks (dev being one of them) and I was able to easily test my deployment script against my azure subscription.
Now I've pushed my code to source control, created by build pipeline (which works) and I'm trying to create my infrastructure from the release pipeline by using the Pulumi Azure Pipelines Task.
I've managed to configure it to use the blob storage for the state file, but when running pulumi up --yes --skip-preview
for the dev stack I get an error that the dev stack does not exist.
Do I need to do a pulumi stack init dev
on every "store" that I use? Aren't the Pulumi.stack_name.yaml files enough?
Any advice on how to proceed is welcomed as the documentation on this is non existent or not clear.
Thank you!