sparse-intern-71089
11/12/2023, 11:00 AMcolossal-room-15708
11/12/2023, 11:08 AM3.40.2
colossal-room-15708
11/12/2023, 11:26 AMexport ...
is not enough it seemspurple-printer-9748
11/12/2023, 12:35 PMpurple-printer-9748
11/12/2023, 12:36 PMAZURE_STORAGE_ACCOUNT
AZURE_STORAGE_KEY
PULUMI_CONFIG_PASSPHRASE
and I was using exportpurple-printer-9748
11/12/2023, 12:37 PMadorable-area-44034
11/12/2023, 1:09 PMaz
version changed somewhere along the way? 🤔purple-printer-9748
11/12/2023, 1:15 PMaz version
"azure-cli": "2.53.1",
"azure-cli-core": "2.53.1",
purple-printer-9748
11/12/2023, 1:22 PMadorable-area-44034
11/12/2023, 1:30 PMaz
and pulumi
etc...colossal-room-15708
11/12/2023, 9:21 PMdocker run -it -v C:\development\argos\infra\:/infra --entrypoint bash pulumi/pulumi
root@75dc7b7deeb1:/# pulumi version
v3.93.0
root@75dc7b7deeb1:/# cd infra/
root@75dc7b7deeb1:/infra# bash pulumi-init.sh
Logged in to 75dc7b7deeb1 as root (<azblob://state>)
root@75dc7b7deeb1:/infra# pulumi whoami
error: unable to open bucket <azblob://state>: azureblob: Options.AccountName is required
root@75dc7b7deeb1:/infra#
colossal-room-15708
11/12/2023, 9:22 PMexport AZURE_STORAGE_ACCOUNT=""
export AZURE_STORAGE_KEY=""
export PULUMI_CONFIG_PASSPHRASE=""
pulumi login <azblob://state>
(with the correct values of course)purple-printer-9748
11/13/2023, 8:54 AMaz login
?purple-printer-9748
11/13/2023, 8:54 AMcolossal-room-15708
11/13/2023, 10:13 AMcolossal-room-15708
11/13/2023, 10:17 AMadorable-area-44034
11/13/2023, 12:50 PM#!/usr/bin/env bash
at the top of pulumi-init.sh
and then remove each `export`from that file and chmod +x pulumi-init.sh
the file instead.
Otherwise you may as well simply use
. ./pulumi-init.sh
or source ./pulumi-init.sh
Which would keep those environment variables visible in your current shell.
FYI: any environment variables set in the current shell are available in that shell and any subshell. Although anything exported in the subshell are NOT available to the calling shell when the subshell exits - nor are they able to be.
That's a difference between source
and a subshell that can bite you. 🙂colossal-room-15708
11/13/2023, 10:40 PM