This message was deleted.
s
This message was deleted.
q
welp, I fixed it, but I’m not sure how Previously I was using xargs to target specific resources:
Copy code
pulumi stack export | jq -r '.deployment.resources[] | select(.type == "pulumi:providers:azuread") | .urn' | xargs printf -- "--target '%s'\n" | xargs pulumi up --refresh --yes --non-interactive
(I’m trying to automate the workaround for this) I changed it to use a for loop instead, and suddenly it works as expected:
Copy code
for URN in $(pulumi stack export | jq -r '.deployment.resources[] | select(.type == "pulumi:providers:azuread") | .urn' ); do
  pulumi up --refresh --yes --non-interactive --target "${URN}"
done
not sure why xargs would make a difference; I’ve probably just made a mistake I can’t see—the for loop is easier to understand
🤷
1273 Views