pulumi-refresh

Sync stack state with cloud resources

TLDR

Refresh state from cloud
$ pulumi refresh
Refresh specific stack
$ pulumi refresh -s [stack]
Refresh with auto-approval
$ pulumi refresh --yes
Refresh specific resources by URN
$ pulumi refresh --target [urn]
Refresh and fail if changes are detected
$ pulumi refresh --expect-no-changes
Refresh with JSON output
$ pulumi refresh --json

SYNOPSIS

pulumi refresh [options]

DESCRIPTION

pulumi refresh updates stack state to match actual cloud resources. Detects drift between Pulumi state and real infrastructure. Run before updates when resources may have changed outside Pulumi.

PARAMETERS

-s, --stack name

Target stack.
-y, --yes
Skip confirmation.
--target urn
Refresh specific resources.
-m, --message string
Message to associate with the update operation.
-j, --json
Serialize the refresh diffs and output as JSON.
--expect-no-changes
Return an error if any changes occur during refresh.
--exclude urn
Exclude specific resources from refresh (supports wildcards).
--import-pending-creates
Import resources that were created during pending operations.
--clear-pending-creates
Remove any pending CREATEs from state.
-p, --parallel n
Parallelism level (1 for no parallelism).

INSTALL

sudo pacman -S pulumi
sudo apk add pulumi
brew install pulumi
nix profile install nixpkgs#pulumi

SEE ALSO

pulumi(1), pulumi-up(1), pulumi-preview(1), pulumi-destroy(1), pulumi-stack(1)