cold-motorcycle-78950
01/21/2020, 4:30 PMfuture-barista-68134
01/21/2020, 5:42 PMcold-motorcycle-78950
01/21/2020, 7:51 PMfuture-barista-68134
01/21/2020, 10:37 PMI figured that pulumi would scope itself to the version in my cwdIt should work this way! Just double check that you're running pulumi up in the directory that coordinates with the stack you have selected. You can get this by running
pulumi stack ls
... the stack with the star is the one you're currently on. I.e. if you're in ~/Documents/dev-branch-code make sure you are on the dev stack.. and when you are in ~/Documents/integration-branch-code make sure you are on the integration stack. Use pulumi stack select (desired stack)
to switch between.cold-motorcycle-78950
01/22/2020, 2:10 PMpulumi stack ls
so I presume I’m on the right stack. What appeared to fix my problem was ensuring that my local branch wasn’t behind the remote tracking branch. When I was a commit behind the remote, pulumi seemed ignore what I had locally and would instead run the state on the remote branch. After I git pull
ed and my local branch was at the same commit as the remote, pulumi seemed to start running the changes that I had locally (my syntax canary died for instance). I may have been paying attention to the wrong events here, and my explanation sounds like it’s at odds with how pulumi is expected to work, so I don’t have a lot of confidence in my take. I’ll chime back in here if I run into the issue again.future-barista-68134
01/22/2020, 3:59 PM