Open stazz opened 2 days ago
Okay, I found also a somewhat heavyweight workaround which is not optimal at all, but it DOES prevent crashing. I've added registries
to the ignoreChanges
provider options of docker.Image
resource, and now up
with no-op plan passes. This might bite me back later, but for now, it at least prevents crashing, and makes using plan files in general feasible.
export const image = new docker.Image(
"...",
{
...
},
{
ignoreChanges: ["registries"],
},
);
What happened?
The
docker-build
provider crashed onup
command with--plan=<path>
argument with the following message:Example
The code which causes this is like this:
It works fine without
--plan
functionality, but not without. The plan was also extremely simple - onpreview
it said there are no changes to the stack (as it should be, since I changed nothing). However, onup
command, the error message was seen (which btw printed the username and password in plaintext to console output), and process crashed.Output of
pulumi about
The output is a bit wonky since I am utilising Pulumi Automation API to run my pipeline, as it is a bit complex (has some other components than just Pulumi), and I am storing the state and encryption key in AWS (not using Pulumi cloud). Furthermore, I am running Pulumi inside Docker container
pulumi/pulumi-nodejs-22:3.134.1
.But the versions in the
package.json
are like this:Additional context
Now that I've written the full report, I am not sure whether this actually belongs here or in AWS provider. Maybe the AWS provider for some reason provides same token during
preview
(and evenrefresh
, as I've run that as well), but duringup
it is not? Since in the error message, thepassword
values DO differ. I don't know. Feel free to move the issue over the AWS provider repo if it really belongs there. 👍Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).