average-table-75151
02/02/2023, 11:31 AMexport AWS_REGION=xx-xxx-x
export AWS_PROFILE=yyyyy
Now i am trying to use the Pulumi config instead of env vars, so i've added the following settings to the stack's pulumi config:
config:
aws:profile: yyyyy
aws:region: xx-xxx-x
Now i am getting the following errors:
error: unable to validate AWS credentials.
Details: no valid credential sources for found.
I tried to add skipCredentialsValidation: true
and skipMetadataApiCheck: false
but getting the same result.
pulumi about
added in comments➜ ~ pulumi about
CLI
Version 3.49.0
Go Version go1.19.3
Go Compiler gc
Plugins
NAME VERSION
aws 5.24.0
aws 5.24.0
cloudflare 3.6.0
cloudflare 3.3.0
datadog 3.3.0
datadog 3.3.0
docker 3.6.1
docker 3.0.0
kafka 3.4.0
kafka 3.0.1
kubernetes 3.6.0
kubernetes 3.6.0
mysql 3.1.0
mysql 3.0.0
nodejs unknown
okta 3.17.0
okta 3.0.0
pagerduty 2.2.0
pagerduty 2.1.1
postgresql 3.6.0
postgresql 3.6.0
rabbitmq 3.2.0
rabbitmq 3.0.0
random 4.10.0
random 4.2.0
spotinst 3.8.0
spotinst 3.8.0
tls 4.8.0
tls 4.0.0
Host
OS amazon
Version 2
Arch x86_64
This project is written in nodejs: executable='~/.nvm/versions/node/v14.21.0/bin/node' version='v14.21.0'
millions-furniture-75402
02/02/2023, 1:58 PMaws --profile my-profile sts get-caller-identity
average-table-75151
02/02/2023, 2:11 PMmillions-furniture-75402
02/02/2023, 2:11 PMaverage-table-75151
02/02/2023, 2:11 PMmillions-furniture-75402
02/02/2023, 2:11 PMaverage-table-75151
02/02/2023, 2:12 PMmillions-furniture-75402
02/02/2023, 2:12 PMaverage-table-75151
02/02/2023, 2:12 PMaws 5.24.0
millions-furniture-75402
02/02/2023, 2:13 PMDetails: no valid credential sources for found.
really odd that the profile name is blank in this message.average-table-75151
02/02/2023, 2:15 PM[my-profile]
aws_access_key_id = xxxxxxxxxxxxxx
aws_secret_access_key = xxxxxxxxxxxxxx
aws_session_token = xxxxxxxxxxxxxx
aws_security_token = xxxxxxxxxxxxxx
millions-furniture-75402
02/02/2023, 2:15 PMaverage-table-75151
02/02/2023, 2:16 PMmillions-furniture-75402
02/02/2023, 2:17 PMaverage-table-75151
02/02/2023, 2:21 PMAWS_
env vars existsmillions-furniture-75402
02/02/2023, 2:27 PMaws_security_token
and aws_session_token
?melodic-tomato-39005
02/02/2023, 4:24 PMskipCredentialsValidation
doesn’t do anything makes me wonder if the config is accidentally applied to a different stack than the program?average-table-75151
02/02/2023, 6:29 PMmelodic-tomato-39005
02/02/2023, 6:57 PMpulumi stack ls
show more than one stack? Each up
or config set
command only applies to a particular stack.average-table-75151
02/02/2023, 7:04 PMmelodic-tomato-39005
02/02/2023, 7:04 PMaverage-table-75151
02/02/2023, 7:05 PMmillions-furniture-75402
02/02/2023, 9:35 PMaws_security_token
from the profile?