https://pulumi.com logo
#general
Title
# general
p

plain-parrot-21984

10/25/2023, 7:28 AM
Hello Pulumi community 👋🏻 Since yesterday afternoon, pulumi CLI hangs indefinitely, whether it be for a
preview
or for
up
The command will initiate and then hang on line 7 with three dots ... The last change to the stack is minor (just an additional statement in a permission policy) ... I can't think it has to do with that. Nothing else has changed. We're on the latest CLI version since this morning:
3.90.1
(failed yesterday with version
3.90.0
as well). Any idea what could be wrong?
l

little-cartoon-10569

10/25/2023, 6:41 PM
Do you get a particular message when you interrupt the update? If you get use of closed network connection then it's probably that your temporary credentials have expired.
p

plain-parrot-21984

10/26/2023, 3:23 AM
Nope, I don't. What the snippet shows is all that I get 😕
l

little-cartoon-10569

10/26/2023, 3:24 AM
And if you undo the change does it work property?
p

plain-parrot-21984

10/26/2023, 3:49 AM
I've just reverted the last 3 commits and something's actually changing ... but I don't understand why. Let me have a closer look ...
Apparently, this is causing the issue 🤔
l

little-cartoon-10569

10/26/2023, 4:01 AM
What are those "%s"s?
Is that printf-style interpolation?
p

plain-parrot-21984

10/26/2023, 4:02 AM
yep
lines 172-178 are the values
l

little-cartoon-10569

10/26/2023, 4:03 AM
That's not going to work. You need to apply to get that Arn. That's a future value, it's not available at that time.
However, it shouldn't just hang, it should immediately resolve to an error message
Maybe the error message in that particular place is causing troubles with the AWS Role API.
It's a pretty big error message.
Also.. is golang really that icky? 🧌
p

plain-parrot-21984

10/26/2023, 4:04 AM
Well, the funny thing is, I never got any kind of error message
l

little-cartoon-10569

10/26/2023, 4:04 AM
The error message will be in the policy.
If you were to print it to console, you'd see it.
The "%s" on line 103 will be an error message, not an ARN.
p

plain-parrot-21984

10/26/2023, 4:07 AM
Right. Well, I really didn't expect Pulumi just to hang... because of that I didn't really consider the changes being an issue. But now that you mention it it makes sense
Thanks for pointing that out. I'll find a way to fix it. I mean I can construct the ARN instead of fetching it from the creation object itself ... that should work
l

little-cartoon-10569

10/26/2023, 4:08 AM
You can apply the ARN, and build the policy doc as a future value. Pulumi handles that fine.
2 Views