by default the command would be not re-executed after the successful creation. Think of the Command as a resource - once created, the update will only be executed if the inputs change.
If you want to run the command on every update even if the inputs don't change, pass something like Date.now() to https://www.pulumi.com/registry/packages/command/api-docs/local/command/#triggers_nodejs
a
aloof-baker-86174
02/11/2024, 5:54 PM
That makes sense. I wasn't really thinking of it like a normal resource. Thank you!
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.