Hello, I have created a pulumi project with Go and...
# aws
r
Hello, I have created a pulumi project with Go and aws, but now, i have a problem. First, here's the pulumi version:
v3.89.0
I found some people reporting the same problem, but they didn't get a response. This is the error:
Copy code
Updating (dev):
     Type                     Name     Status         Info
     pulumi:pulumi:Stack      lis-dev                 2 messages
     └─ pulumi:providers:aws  dev      **failed**     1 error

Diagnostics:
  pulumi:providers:aws (dev):
    error: rpc error: code = Unknown desc = 2 errors occurred:
    	* unable to validate AWS credentials.
    Details: [{0xc00dc2ab40 0xc00326ad50}]
    Make sure you have set your AWS region, e.g. `pulumi config set aws:region us-west-2`.

    	* unable to validate AWS credentials.
    Details: [{0xc009b5a1e0 0xc00326a990}]
    Make sure you have set your AWS region, e.g. `pulumi config set aws:region us-west-2`.
But I configured everything
Copy code
pulumi config

KEY            VALUE
aws:accessKey  ****
aws:region     us-east-1
aws:secretKey  ****
aws-account    ****
Copy code
cat ~/.aws/config

region=us-east-1
Copy code
echo $AWS_DEFAULT_REGION

us-east-1
The .yaml file:
Copy code
encryptionsalt: ****
config:
  aws:accessKey: ****
  aws:region: us-east-1
  aws:secretKey: ****
  lis:aws-account: ****
And the provider
Copy code
provider, err := aws.NewProvider(ctx, ctx.Stack(), &aws.ProviderArgs{
		AssumeRole: aws.ProviderAssumeRoleArgs{
			RoleArn: pulumi.Sprintf("arn:aws:sts::%s:role/iac", targetAccount),
		},
		Region: pulumi.String("us-east-1"),
	})
If anyone could help me, I would be very grateful.
l
Have you confirmed that your credentials are valid? It's saying that they're not.