rapid-raincoat-36492
09/30/2021, 1:45 PMgit rev-parse --abbrev-ref HEAD
or a webpack command in a pulumi file? Is there a way to run arbitrary shell commands synchronously?crooked-pillow-11944
09/30/2021, 2:06 PMrapid-raincoat-36492
09/30/2021, 2:17 PMcrooked-pillow-11944
09/30/2021, 2:26 PMprehistoric-activity-61023
09/30/2021, 3:21 PMcrooked-pillow-11944
09/30/2021, 3:26 PM#!/usr/bin/env bash
git rev-parse --abbrev-ref HEAD
pulumi config ...
pulumi up
ls -altr
prehistoric-activity-61023
09/30/2021, 3:28 PMpulumi up
so the change is actually reflected in the source code and/or in config valuesimport pulumi_gcp as gcp
import subprocess
shell_result = subprocess.check_output(["uname", "-r"], text=True).strip()
bucket = gcp.storage.Bucket(
"test",
name=shell_result,
)
rapid-raincoat-36492
09/30/2021, 4:33 PM