sparse-intern-71089
11/03/2021, 1:27 PMclever-painter-96148
11/03/2021, 2:14 PM$ aws sso login --profile foo
2. Validate credentials:
$ aws sts get-caller-identity --profile foo
3. Run pulumi:
$ AWS_PROFILE=foo pulumi pre
Pulumi fails with this error:
unable to discover AWS AccessKeyID and/or SecretAccessKey - see <https://pulumi.io/install/aws.html> for details on configuration
full-artist-27215
11/03/2021, 2:41 PMclever-painter-96148
11/03/2021, 2:49 PM$ cat Pulumi.dev.yaml
config:
aws:region: eu-west-1
clever-painter-96148
11/03/2021, 2:49 PMfull-artist-27215
11/03/2021, 2:57 PMpulumi_aws
are you using?clever-painter-96148
11/03/2021, 3:03 PM$ grep @pulumi/ package.json
"@pulumi/aws": "^4.25.0",
"@pulumi/pulumi": "^3.16.0"
clever-painter-96148
11/03/2021, 3:04 PM$ pulumi version
v3.16.0
full-artist-27215
11/03/2021, 3:28 PMclever-painter-96148
11/03/2021, 3:30 PMfull-artist-27215
11/03/2021, 3:32 PMfaint-table-42725
11/03/2021, 5:26 PMAWS_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 upclever-painter-96148
11/03/2021, 5:33 PM