mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-21 00:50:50 +00:00
Update cheatsheets
This commit is contained in:
37
tldr/pulumi-stack
Normal file
37
tldr/pulumi-stack
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pulumi stack
|
||||
|
||||
> Manage stacks and view stack state.
|
||||
> More information: <https://www.pulumi.com/docs/iac/cli/commands/pulumi_stack/>.
|
||||
|
||||
- Create a new stack:
|
||||
|
||||
`pulumi stack init {{stack_name}}`
|
||||
|
||||
- View the stack state:
|
||||
|
||||
`pulumi stack`
|
||||
|
||||
- List known stacks:
|
||||
|
||||
`pulumi stack ls`
|
||||
|
||||
- Select an active stack:
|
||||
|
||||
`pulumi stack select {{stack_name}}`
|
||||
|
||||
- Show stack outputs, including secrets, in plaintext:
|
||||
|
||||
`pulumi stack output --show-secrets`
|
||||
|
||||
- Export the stack state to a JSON file:
|
||||
|
||||
`pulumi stack export --file {{path/to/file.json}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`pulumi stack --help`
|
||||
Reference in New Issue
Block a user