LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pulumi-refresh

Sync stack state with cloud resources

TLDR

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

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).

SEE ALSO

Copied to clipboard
Kai