1. How to see only changes when using `pulumi up`?

    TypeScript

    Pulumi's preview command shows you what would happen if you run a pulumi up command.

    You can see only the changes that will be applied to your infrastructure without making any actual changes yet. The preview will provide information on which resources will be created, modified, or deleted.

    Here is how you use the preview command:

    pulumi preview

    And if you want to see these details in the context of a specific stack, you can do so by specifying the stack like this:

    pulumi preview --stack <stack_name>

    Just replace <stack_name> with the name of your stack.

    Remember to run these commands in the same directory as your Pulumi program.