mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
chore: add findings from using pulumi
This commit is contained in:
@@ -101,23 +101,20 @@ pulumi about
|
||||
pulumi about -s 'dev'
|
||||
|
||||
|
||||
# Get the full program configuration.
|
||||
# Secrets are obscured.
|
||||
pulumi config get
|
||||
|
||||
# Set configuration values.
|
||||
pulumi config set 'varName' 'value'
|
||||
pulumi config set 'namespace:varName' 'value'
|
||||
pulumi config set --secret 'secretName' 'secretValue'
|
||||
pulumi config set --secret 'namespace:secretName' 'secretValue'
|
||||
|
||||
# Read configuration values.
|
||||
# Secrets get unencrypted.
|
||||
pulumi config get 'dbPassword'
|
||||
|
||||
# Copy the configuration over to other stacks.
|
||||
pulumi config cp -d 'local'
|
||||
pulumi config cp -s 'prod' -d 'dev'
|
||||
|
||||
# Read secrets.
|
||||
pulumi config get 'dbPassword'
|
||||
|
||||
|
||||
# Get a summary of what would be deployed.
|
||||
pulumi pre
|
||||
|
||||
11
snippets/base64.sh
Normal file
11
snippets/base64.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
printf 'something plain' | base64
|
||||
echo -n 'something plain' | base64
|
||||
echo 'c29tZXRoaW5nIHBsYWlu' | base64 -d
|
||||
|
||||
echo 'something plain with final newline' | base64
|
||||
echo 'c29tZXRoaW5nIHBsYWluIHdpdGggZmluYWwgbmV3bGluZQo=' | base64 -d
|
||||
|
||||
printf 'something plain' | gzip | base64
|
||||
echo H4sIAPQWZmYAAyvOz00tycjMS1coyEnMzAMA2StAzA8AAAA= | base64 -d | gzip
|
||||
@@ -42,6 +42,15 @@ pulumi preview --json | jq -r '.steps[]|select(.op=="delete").oldState.id' -
|
||||
# Remove from the state all resources that would be deleted
|
||||
pulumi preview --json | jq -r '.steps[]|select(.op=="delete").urn' - | xargs -n1 pulumi state delete --force
|
||||
|
||||
pulumi config set 'boincAcctMgrUrl' 'https://bam.boincstats.com'
|
||||
pulumi config set --secret 'boincGuiRpcPasswd' 'something-something-darkside'
|
||||
pulumi config set --path 'outer.inner' 'value'
|
||||
pulumi config set --path 'list[1]' 'value'
|
||||
|
||||
pulumi config get 'boincAcctMgrUrl'
|
||||
pulumi config get 'boincGuiRpcPasswd'
|
||||
pulumi config get --path outer.inner
|
||||
pulumi config get --path 'list[1]'
|
||||
|
||||
pulumi plugin ls --project
|
||||
pulumi plugin install
|
||||
|
||||
Reference in New Issue
Block a user