Persistent Key error.

But the key we need is already configured in the AWS configuration file.

Problems and solutions

The problem was later discovered because different profile properties were set for different keys in the application.

Therefore, the different attributes need to be configured, otherwise the above error will be displayed.

In fact, the main reason is the problem of program setting.

For example, use the following configuration to configure the Key used

[ossez]
aws_access_key_id = AKIAXXXXXXXXX
aws_secret_access_key = cHWXXXXXXXXXXXXX
[ossez-root]
aws_access_key_id = AKIAXXXXXXXXX
aws_secret_access_key = cHWXXXXXXXXXXXXX
Copy the code

The above configuration is also designed to make it easier for programs to call different keys for different attributes.

www.ossez.com/t/pulumi-aw…