I am having a weird issue and I am wondering if an...
# general
b
I am having a weird issue and I am wondering if anyone knows how to figure out why it is happening. Basically when I run up/preview pulumi is saying that my aws provider changed and wants to replace everything. The diff doesn’t show anything for provider except that the id on the end is gonna change
…..pulumi:providers:aws::default::output<string>
. How can I see what it thinks changed with the provider?
b
pulumi preview --diff
have you tried that?
oh nvm I missed that part
b
Yeah, nothing besides that the providers id will change /shrug
b
I think verbose/debug logs would show what is triggering the diff. You'll have to sift through a lot of logs to find it but, https://www.pulumi.com/docs/iac/support/troubleshooting/#verbose-logging
There should be a point where the Pulumi Engine decides there's a diff between new/old and decides to replace. You should see the property or properties that triggers the diff
b
Let’s give it a go
Looks like it will only output the verbose logs on an actual apply, which I don’t want to do as it will delete/replace my live resources
b
preview should output logs to my knowledge but something could have changed, I guess.
b
Figured it out… previously ran the stack with profile & region set. I was just running with profile so it was trying to replace. Setting region on my envs made it stop