Dynobase / dynobase

Dynobase - Professional GUI Client for DynamoDB (releases / issues / roadmap repository) https://dynobase.dev
https://dynobase.dev
89 stars 0 forks source link

Terminal is always using default AWS profile #236

Closed jimmyn closed 1 year ago

jimmyn commented 1 year ago

It seems that the Terminal is always using default AWS profile, although I'm using it with the table that is fetched from non default AWS account.

Here is the simple script I'm trying to execute:

function transform(data) {
  return Promise.all(data.map(async (record) => {
    record.updated = false;
    await db.put({
      TableName, // this is already defined
      Item: record
    }).promise();
    return record;
  }))

But I always get Error: Requested resource not found

I've tested, and it seems to be working fine with the table that is located in the default AWS account.