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.
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:
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.