https://pulumi.com logo
Title
h

hundreds-kite-52072

06/01/2021, 2:29 PM
I'm trying out the example aws-ts-lambda-thumbnailer. pulumi up seems to get stuck and just sits there for a considerable amount of time. How long should I wait for it before giving up? How long would it normally take to do a pulumi up for this example? Is there a way to see what's going on so I know if it is hanging or if it is actually doing something? (The example in the readme with the repo shows a duration of 1m41s - mine is running for more than 40 minutes). The only difference I have is that the docker container won't build with a error: The command '/bin/sh -c mv ffmpeg-4.3.1-amd64-static/ffmpeg /usr/bin' returned a non-zero code: 1. So I replaced RUN "mv ffmpeg-4.3.1-amd64-static/ffmpeg /usr/bin" with "RUN mv ffmpeg-*-amd64-static/ffmpeg /usr/bin"
b

billowy-army-68599

06/01/2021, 3:24 PM
it shouldn't take 40 minutes 😞 how do you auth to AWS?
h

hundreds-kite-52072

06/01/2021, 3:25 PM
In the credentials file (.aws/credentials). Where there is only the [default] entry with aws_access_key_id and aws_secret_access_key
b

billowy-army-68599

06/01/2021, 3:34 PM
you might want to
ctrl + c
it I'm afraid
h

hundreds-kite-52072

06/01/2021, 3:42 PM
Okay, how long should it take and how do I find out what's wrong and how to fix it?
Re-running pulumi up seems to be hanging again.
b

billowy-army-68599

06/01/2021, 3:44 PM
usuaally you'd get feedback right away, but in this case I suspect the docker provider is not working correctly. you can check if the image is being built and pushed using docker commands like
docker ps
and
docker images
h

hundreds-kite-52072

06/01/2021, 3:59 PM
I've cleaned out all existing docker images, the pulumi up preview builds the image. Then the pulumi up gets stuck after reporting 'pushed'
And a second image is created with nnnnnnnnnn.dkr.ecr.us-west-2.amazonaws.com/sampleapp-736f9e5 which I assume is the image that is uploaded. I note that that's quite a large image that has to be uploaded. Is the sequence of events, that the image gets built locally and then uploaded to the aws repository? If it's a more than 1GB upload I can see that that would take a while to upload - is the hanging that it is uploading a large image?
b

billowy-army-68599

06/01/2021, 4:02 PM
it might be exactly that yes, it does get built locally
i'm still surprised it's taking 40+ minutes though
h

hundreds-kite-52072

06/01/2021, 4:03 PM
If that's the case is there anyway to see the upload progress?
And, if I update the docker image will it re-upload the full image or just the changes?
b

billowy-army-68599

06/01/2021, 4:07 PM
it should only push the changes, but this is managed by docker, not pulumi
h

hundreds-kite-52072

06/01/2021, 4:08 PM
Okay, understood. Thanks for your help.
a

adorable-continent-4073

06/01/2021, 6:59 PM
i found delays of 15 minutes yesterday before things timed out and started to prefixing everything with
pulumi refresh -y &&
to get around the issue.