Skip to content

Why required region in IAM Client?  #1995

@Nevation

Description

@Nevation

Describe the bug

async function iam_summary_test() {
    const iam = new IAMClient({ credentials: makeCredentials() })
    const command = new GetAccountAuthorizationDetailsCommand({});
    const data = await iam.send(command);

    return data
}

In aws-sdk v2, the IAM region was not required, but in v3, an error occurs "Error: Region is missing" if there is no region.

So I think it's a bug, and I ask for a fix.

Your environment

@aws-sdk/client-iam@^3.4.1

Is the issue in the browser/Node.js/ReactNative?

Node.js

Details of the browser/Node.js/ReactNative version

v12.18.2

Expected behavior

execute source code

Screenshots

image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions