miniature-motorcycle-18359
05/05/2025, 9:04 PMpulumi up
command is hanging and not responding to ctrl-C, ctrl-\, or any other commands I'd usually try to kill the process. I'm using a super basic stack configuration just to try to figure out what's going on:
"""An AWS Python Pulumi program"""
import pulumi
from pulumi_aws import s3
# Create an AWS resource (S3 Bucket)
bucket = s3.BucketV2('my-bucket')
# Export the name of the bucket
pulumi.export('bucket_name', bucket.id)
And this is what I'm seeing on my screen after more than 1 hour of waiting. I'm assuming this is a configuration issue but shouldn't I get an error message or something? Why would it be locked up like this on such a basic implementation?little-cartoon-10569
05/05/2025, 9:38 PMaws sso login
or some equivalent.miniature-motorcycle-18359
05/05/2025, 9:40 PMaws sso login
immediately before running pulumi up
so I wouldn't expect that to be the issue. Also just running in iTerm on my macbook.miniature-motorcycle-18359
05/05/2025, 9:40 PMTF_LOG=TRACE pulumi up --logtostderr --logflow -v=10 2> out.txt
Happy to share the output of that file if it'll helplittle-cartoon-10569
05/05/2025, 9:41 PMaws --profile X sso login
to get it to work in that case.miniature-motorcycle-18359
05/05/2025, 9:42 PMaws sso login --profile my-profile
. I just created this stack - where would I look to check if it's using a short-lived session?miniature-motorcycle-18359
05/05/2025, 9:43 PMexport AWS_PROFILE=my-profile
before running pulumi up
?little-cartoon-10569
05/05/2025, 9:43 PMminiature-motorcycle-18359
05/05/2025, 9:43 PMname: test3
description: A minimal AWS Python Pulumi program
runtime:
name: python
options:
toolchain: pip
virtualenv: venv
config:
pulumi:tags:
value:
pulumi:template: aws-python
little-cartoon-10569
05/05/2025, 9:43 PMlittle-cartoon-10569
05/05/2025, 9:44 PMaws:
profile: X
in your stack file, or
config:
aws:
profile: X
in your project file.miniature-motorcycle-18359
05/05/2025, 9:45 PMconfig:
aws:region: us-east-1
miniature-motorcycle-18359
05/05/2025, 9:45 PMlittle-cartoon-10569
05/05/2025, 9:45 PMaws sso login
again, without the --profile
.miniature-motorcycle-18359
05/05/2025, 9:45 PMlittle-cartoon-10569
05/05/2025, 9:46 PMminiature-motorcycle-18359
05/05/2025, 9:46 PMlittle-cartoon-10569
05/05/2025, 9:46 PMminiature-motorcycle-18359
05/05/2025, 9:47 PMminiature-motorcycle-18359
05/05/2025, 9:52 PMminiature-motorcycle-18359
05/05/2025, 9:52 PMlittle-cartoon-10569
05/05/2025, 9:53 PMlittle-cartoon-10569
05/05/2025, 9:54 PMlittle-cartoon-10569
05/05/2025, 9:55 PMminiature-motorcycle-18359
05/05/2025, 9:56 PMminiature-motorcycle-18359
05/05/2025, 10:00 PMminiature-motorcycle-18359
05/05/2025, 10:01 PMminiature-motorcycle-18359
05/05/2025, 10:01 PMminiature-motorcycle-18359
05/05/2025, 10:03 PMminiature-motorcycle-18359
05/05/2025, 10:04 PMminiature-motorcycle-18359
05/05/2025, 10:08 PMlittle-cartoon-10569
05/05/2025, 10:27 PMlittle-cartoon-10569
05/05/2025, 10:28 PMaws s3 ls
or similar?miniature-motorcycle-18359
05/05/2025, 10:28 PMlittle-cartoon-10569
05/05/2025, 10:28 PMpulumi login
might be worth a try too?miniature-motorcycle-18359
05/05/2025, 10:29 PMlittle-cartoon-10569
05/05/2025, 10:31 PMminiature-motorcycle-18359
05/05/2025, 10:35 PMminiature-motorcycle-18359
05/05/2025, 10:36 PMquick-house-41860
05/06/2025, 8:54 AMpulumi
and the AWS provider. We've been thinking about adding detection mechanisms for this right into pulumi: https://github.com/pulumi/pulumi/issues/16598miniature-motorcycle-18359
05/06/2025, 1:28 PMwhich pulumi
, navigated to that folder, and then ran file pulumi
and it told me it was x86. I then went into the plugins folder and did the same thing and saw that it was also x86.
• From there I just removed the entire ~/.pulumi
folder, then I downloaded that script from get.pulumi.com and added some print lines to where it figured out the arch.
• Unclear what I did to get it to work, but when I ran it locally using zsh
instead of what’s in your documentation (sh
), it installed correctly as arm64 and everything started working.miniature-motorcycle-18359
05/06/2025, 1:29 PMquick-house-41860
05/07/2025, 8:20 PMsh
to x86 🤔 I remember that this was the workaround for some tools when the apple silicon macbooks first came out.miniature-motorcycle-18359
05/08/2025, 2:04 PMsh
command thinks it’s running in and it’s giving me arm64, but I’m not entirely sure how all of that works with Rosetta.
jason@Jasons-MacBook-Pro-2 datahub % /bin/sh
sh-3.2$ uname -a
Darwin Jasons-MacBook-Pro-2.local 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:03:15 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6000 arm64