chore: add findings from using pulumi

This commit is contained in:
Michele Cereda
2024-06-12 21:54:30 +02:00
parent 76979fb1f7
commit 4ecc863a42
3 changed files with 24 additions and 7 deletions

View File

@@ -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
View 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

View File

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