LinuxCommandLibrary

pulumi-state

Directly manipulate stack state

TLDR

Delete resource from state
$ pulumi state delete [urn]
copy
Unprotect resource
$ pulumi state unprotect [urn]
copy
Rename resource
$ pulumi state rename [urn] [new_name]
copy
Upgrade state schema
$ pulumi state upgrade
copy

SYNOPSIS

pulumi state command [options]

DESCRIPTION

pulumi state manipulates stack state directly. Use for state surgery when resources need manual removal or modification. Dangerous operations that bypass normal resource lifecycle.

PARAMETERS

delete urn

Remove resource from state.
unprotect urn
Remove protection from resource.
rename urn name
Rename resource in state.
upgrade
Upgrade state schema.
-s, --stack name
Target stack.
-y, --yes
Skip confirmation.
--force
Force operation.

CAVEATS

Direct state manipulation can cause drift between state and actual infrastructure. Use with caution.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard