square-laptop-45713
01/22/2023, 5:01 PMpulumi refresh
command as I just ran it and it seemingly removed a resource that was manually added for troubleshooting purposes. From the documentation here it states:
Any such changes are adopted into the current stack.It’s not clear if this is referring to the “current stack” as just the state held within Pulumi’s state management OR if “current stack” means the actual resources in the Cloud Provider
billowy-army-68599
01/22/2023, 5:04 PMpulumi refresh
will reconcile the state of your code, the state of your cloud provider and the state of your Pulumi state.
If you added a resource manually and didn't add it to your code and state, it will indeed be removedsquare-laptop-45713
01/22/2023, 5:06 PMpulumi up
to get it back inline. This is what I’ve been doing and how I’ve assumed Pulumi was operating.billowy-army-68599
01/22/2023, 5:09 PMpulumi import
square-laptop-45713
01/22/2023, 5:10 PMbillowy-army-68599
01/22/2023, 5:10 PMI just ran it and it seemingly removed a resource that was manually added for troubleshooting purposeswhat resource was it that got removed?
square-laptop-45713
01/22/2023, 5:10 PMbillowy-army-68599
01/22/2023, 5:11 PMsquare-laptop-45713
01/22/2023, 5:12 PMbillowy-army-68599
01/22/2023, 5:12 PMsquare-laptop-45713
01/22/2023, 5:14 PMbillowy-army-68599
01/22/2023, 5:14 PMsquare-laptop-45713
01/22/2023, 5:15 PMbillowy-army-68599
01/22/2023, 6:22 PM