Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pulumi-config: add page #14820

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions pages/common/pulumi-config.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# pulumi config

> Manage configuration settings for your Pulumi stack.
Denis-Kuso marked this conversation as resolved.
Show resolved Hide resolved
> 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 value for a key from a file:

`cat my_key.pub | pulumi config set {{key}}`
Denis-Kuso marked this conversation as resolved.
Show resolved Hide resolved

- Set secret value (e.g. API key) for a key and store/display as ciphertext:

`pulumi config set --secret {{key}} {{S3cr37_value}}`

- Remove multiple configuration values from a specified config file:

`pulumi config --config-file {{path/to/file}} rm-all {{key1}} {{key2}} {{key3}} ... {{[flags]}}`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`pulumi config --config-file {{path/to/file}} rm-all {{key1}} {{key2}} {{key3}} ... {{[flags]}}`
`pulumi config --config-file {{path/to/file}} rm-all {{key1 key2 ...}} {{[
flags}}`

Copy link
Author

@Denis-Kuso Denis-Kuso Nov 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one seems to be missing a closing square bracket at the end of flags variable right?