hi there I am configuring my aws provider directly...
# typescript
b
hi there I am configuring my aws provider directly on my stack yaml file like this
Copy code
config:
  aws:profile: profile
  aws:region: us-east-1
it worked before, my components were deployed on the console the profile had the credentials for, but now for some reason the profiles are not being read anymore, has anything changed? is this now deprecated or why I am getting this
Copy code
Unable to locate credentials. You can configure credentials by running "aws configure".
    Unable to locate credentials. You can configure credentials by running "aws configure".
    Unable to locate credentials. You can configure credentials by running "aws configure".
    Unable to locate credentials. You can configure credentials by running "aws configure".

    Unable to locate credentials. You can configure credentials by running "aws configure".
    Unable to locate credentials. You can configure credentials by running "aws configure".
    Unable to locate credentials. You can configure credentials by running "aws configure".
    Unable to locate credentials. You can configure credentials by running "aws configure".
if I run the command it sets the defailt profile but I want to use another different than the default
the provovider component exists
Copy code
{
                "urn": "urn:pulumi:staging::kubernetes-liniopay::pulumi:providers:aws::default_6_37_1",
                "custom": true,
                "id": "07dde68b-ae45-4598-96ef-e3f3638a61ed",
                "type": "pulumi:providers:aws",
                "inputs": {
                    "profile": "liniopay-core-staging",
                    "region": "us-east-1",
                    "skipCredentialsValidation": "false",
                    "skipRegionValidation": "true",
                    "version": "6.37.1"
                },
                "outputs": {
                    "profile": "liniopay-core-staging",
                    "region": "us-east-1",
                    "skipCredentialsValidation": "false",
                    "skipRegionValidation": "true",
                    "version": "6.37.1"
                },
                "created": "2024-05-24T20:08:45.534132Z",
                "modified": "2024-05-24T20:08:45.534132Z"
            },
Copy code
pulumi config -s staging get aws:profile
liniopay-core-staging
i found an issue closed, for some reason if I explicity set
AWS_PROFILE
env variable it works, if not I get the credentials issue
any comment? 😮
l
Hi Fernando -- are you able to paste any code from your program? Assuming that
liniopay-core-staging
is the profile you want, it looks like it's being set correctly. Are you perhaps using an explicit provider somewhere else?