Skip to content

Required region in IAM Client #6343

@ghost

Description

Checkboxes for prior research

Describe the bug

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.
same issue #1995, but I think it isn't fixed.

SDK version number

@aws-sdk/[email protected]

Which JavaScript Runtime is this issue in?

Node.js

Details of the browser/Node.js/ReactNative version

v18.18.2

Reproduction Steps

execute source code

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

    return data
}

Observed Behavior

Throw error Region is missing

Expected Behavior

Work properly

Possible Solution

No response

Additional Information/Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.p2This is a standard priority issuequeuedThis issues is on the AWS team's backlogv2-v3-inconsistencyBehavior has changed from v2 to v3, or feature is missing altogether

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions