few-telephone-23228
11/22/2024, 11:36 PMproduction
, recovery
, preprod
and others, but regardless of which stack we set up or upgrade, there is one problem we cannot figure out or find a solution for:
We normally set up stacks using an AWS State Machine (which is itself defined in Pulumi), which lets us control all aspects of deployment, readiness, recovery, upgrades and much more. This works flawlessly across all projects, and we can if needed run a pulumi up
from any local machine to try out changes in, for instance, preprod
. This works for every single project, except one, which, when run from ay other place than the State Machine, always wants to replace every single resource due to replace [diff: ~provider]
.
We do not use any custom providers or explicit provider configurations, and it happens for only one project.
Has anyone seen something similar, or have an idea of things to look for or try, in order to resolve this?
Grateful for any help you may be able to provide.melodic-tomato-39005
11/23/2024, 9:04 AMpulumi up --diff
or pulumi preview --diff
show what exactly it thinks has changed about the provider?few-telephone-23228
11/23/2024, 4:39 PMdefault_6_60_0
but the existing one is default_6_60_0::4bf6ece5-4ce6-4006-8ace-eb5757b6108d
where as the “new” one is default_6_60_0::output<string>
.
What in the world does that come from? There seems to be an unresolved Output tacked on to the “new” one?
Unless it's the normal output<string>
during the preview phase, and it is in fact the same value as the existing one. Or a different one. Either way, it's not really helpful, I think?quick-house-41860
11/24/2024, 1:04 PMAWS_REGION
environment variable than the environment where you're running into that issue.
I'd recommend checking if there's a diff in any of the configurations related to credentials and regions (e.g. AWS_REGION
, AWS_PROFILE
, etc.).
It's a bit trickier to pin-point when using default providers because they do not show up in the diff as resources themselves.few-telephone-23228
12/06/2024, 12:02 AMpulumi up
on my local machine, which worked as expected during subsequent pulumi up
, until it installed a new pulumi-aws
plugin (I guess a new plugin was released). Immediately it wanted to replace every single resource in the project. Same would happen if I upgrade Pulumi itself. All other projects behave just fine even when a new plugin is installed.