1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-21 22:02:09 +02:00
tldr/pages/common/pulumi-state.md
2025-03-01 08:46:45 +01:00

617 B

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 --help