I am attempting to configure AWS credentials using IAM Identity Center SSO token provider, but I am getting this error Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1
This is my current ~/.aws/config
setup
[profile lalala]
sso_account_id = XXXXXXXXXXXX
sso_role_name = permission-set-name
sso_region = **-****-**
sso_start_url = https://******.awsapps.com/start
I am able to get a list of all the buckets in my account using this command aws s3 ls --profile lalala
however when I run my nodejs application using the following command AWS_PROFILE=lalala nodemon -L
, the credentials don't get recognized and I see the following error
Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1
(I have tried setting AWS_SDK_LOAD_CONFIG to 1 and still get the same error.)
Is there another way to set up credentials?