This message was deleted.
# aws
s
This message was deleted.
c
Yes. Here what I did: 1. Authenticate:
Copy code
$ aws sso login --profile foo
2. Validate credentials:
Copy code
$ aws sts get-caller-identity --profile foo
3. Run pulumi:
Copy code
$ AWS_PROFILE=foo pulumi pre
Pulumi fails with this error:
Copy code
unable to discover AWS AccessKeyID and/or SecretAccessKey - see <https://pulumi.io/install/aws.html> for details on configuration
f
Are you configuring your AWS provider in any special way in your stack YAML file? Or are you creating one manually in your main Pulumi program? I'm not quite sure what's going on here 😕
c
Nope. I simply specify the region:
Copy code
$ cat Pulumi.dev.yaml 
config:
  aws:region: eu-west-1
BTW I also tried to set aws:profile in there. Same results.
f
What version of Pulumi and
pulumi_aws
are you using?
c
Copy code
$ grep @pulumi/ package.json 
    "@pulumi/aws": "^4.25.0",
    "@pulumi/pulumi": "^3.16.0"
Copy code
$ pulumi version
v3.16.0
f
That matches with what I'm using... I'm not sure what's going on here, then; sorry 🙁
c
Thanks for trying 🙂
f
good luck!
f
Mentioned this in the other thread, but one thing to maybe look at is
AWS_SDK_LOAD_CONFIG
and seeing if you have that env var set to a truthy value as if your profile is defined in
~/.aws/config
I believe you’ll need that set to pick it up
c
I replied on the other thread - let's focus the discussion on that one. Thanks! 🙂