mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-09 07:35:43 +02:00
pulumi-config: add page (#14820)
* pulumi-config: add page * Apply suggestions from code review Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> config.md --- Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: Wiktor Perskawiec <git@spageektti.cc> Co-authored-by: Nelson Figueroa <30811275+nelsonfigueroa@users.noreply.github.com> Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
This commit is contained in:
parent
d52d4ce3b7
commit
4d161a8e87
1 changed files with 28 additions and 0 deletions
28
pages/common/pulumi-config.md
Normal file
28
pages/common/pulumi-config.md
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
# pulumi config
|
||||||
|
|
||||||
|
> Manage configuration of a Pulumi stack.
|
||||||
|
> More information: <https://www.pulumi.com/docs/iac/cli/commands/pulumi_config/>.
|
||||||
|
|
||||||
|
- View current configuration in JSON format:
|
||||||
|
|
||||||
|
`pulumi config --json`
|
||||||
|
|
||||||
|
- Get the value of a configuration key:
|
||||||
|
|
||||||
|
`pulumi config get {{key}}`
|
||||||
|
|
||||||
|
- Remove a configuration value:
|
||||||
|
|
||||||
|
`pulumi config rm {{key}}`
|
||||||
|
|
||||||
|
- Set a value for a configuration key from a file:
|
||||||
|
|
||||||
|
`cat {{path/to/file}} | pulumi config set {{key}}`
|
||||||
|
|
||||||
|
- Set a secret value (e.g. API key) for a configuration key and store/display as ciphertext:
|
||||||
|
|
||||||
|
`pulumi config set --secret {{key}} {{S3cr37_value}}`
|
||||||
|
|
||||||
|
- Remove multiple configuration values from a specified configuration file:
|
||||||
|
|
||||||
|
`pulumi config --config-file {{path/to/file}} rm-all {{key1 key2 ...}}`
|
Loading…
Add table
Reference in a new issue