Skip to content

Instantly share code, notes, and snippets.

@codeweft
codeweft / pulumi-profile
Created April 16, 2021 01:14
Pulumi CLI #6029 - Be able to use multiple accounts simultaneously on linux
#!/usr/bin/env bash
set -Eeuo pipefail #https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
trap "usage: pulumi-profile <personal|work>" ERR
# Context: https://github.com/pulumi/pulumi/issues/6029
# Set token values and move this script to /usr/bin or $PATH to have direct access from cli
if [ -z ${1+x} ]; then
echo "usage: pulumi-profile <personal|work>"
exit 0