Skip to content
This repository was archived by the owner on Mar 5, 2024. It is now read-only.
This repository was archived by the owner on Mar 5, 2024. It is now read-only.

NoCredentialProviders/UnknownOperationException when using --region #345

@cjbradfield

Description

@cjbradfield

In some (all?) regions, if you use the --region flag, kiam-server will fail to get credentials from the EC2 Metadata server to make the STS call.

You'll see errors like the following:

{"generation.metadata":0,"level":"error","msg":"error warming credentials: NoCredentialProviders: no valid providers in chain\ncaused by: EnvAccessKeyNotFound: failed to find credentials in the environment.\nSharedCredsLoad: failed to load profile, .\nEC2RoleRequestError: no EC2 instance role found\ncaused by
: EC2MetadataError: failed to make EC2Metadata request\ncaused by: \u003cUnknownOperationException/\u003e\n...

The reason is the --region flag defines an endpoint resolver, but doesn't constrain the resolver to the sts service. Fix is incoming.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions