HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

pulumi state — Edit the current stack's state. More information: <https://www.pulumi.com/docs/iac/cli/commands/pulu

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thepulumi statecurrentcommandstackstatecliedit

Problem

How to use the pulumi state command: Edit the current stack's state. More information: <https://www.pulumi.com/docs/iac/cli/commands/pulumi_state/>.

Solution

pulumi state — Edit the current stack's state. More information: <https://www.pulumi.com/docs/iac/cli/commands/pulumi_state/>.

Delete a resource from the current stack's state:
pulumi state delete


Move a resource from the current stack to another:
pulumi state move {{resource_urn}} --dest {{stack_name}}


Rename a resource in the current stack's state:
pulumi state rename


Repair an invalid state:
pulumi state repair


Edit a stack's state in the editor specified by the $EDITOR environment variable:
pulumi state edit --stack {{stack_name}}


Display help:
pulumi state {{[-h|--help]}}

Code Snippets

Delete a resource from the current stack's state

pulumi state delete

Move a resource from the current stack to another

pulumi state move {{resource_urn}} --dest {{stack_name}}

Rename a resource in the current stack's state

pulumi state rename

Repair an invalid state

pulumi state repair

Edit a stack's state in the editor specified by the `$EDITOR` environment variable

pulumi state edit --stack {{stack_name}}

Context

tldr-pages: common/pulumi state

Revisions (0)

No revisions yet.