Comments (3)
Ok, well I can tell you how I fixed this, but I don't think it's right:
export function createClient(conf?: ClientConfig): DynamoDBClient {
const _conf: Doc = deriveConfig(conf);
// added this:
_conf.cache.refresh();
const dyno: DynamoDBClient = {} as DynamoDBClient;
for (const op of OPS) {
dyno[camelCase(op)] = baseOp.bind(null, _conf, op);
}
return dyno;
}
I say this isn't right because
A) it doesn't await the refresh, so could be a ticking timebomb
B) I'm not convinced this is the right place to do the initial refresh (or maybe the refresh should happen immediately).
from dynamodb.
the v0.3.0
release fixes those config and auth errors
from dynamodb.
Issue is resolved with v0.3.0
from dynamodb.
Related Issues (20)
- Support AWS_SESSION_TOKEN
- How to use Promise<Doc | AsyncIterableIterator<Doc>> ? HOT 5
- Have access_key_id , secret_access_key, and session_token share their lifecycle HOT 3
- test refreshing credentials properly
- error deriving credentials HOT 3
- default port 80 not 443? HOT 5
- ci: consider testing against localstack dynamodb HOT 1
- make the testing table temporary
- fix: running with deno v0.34.0 's strict mode HOT 2
- hygiene: simplify codebase
- Error when package getting installed HOT 1
- Support 1.0.0 HOT 2
- X-Ray Support HOT 1
- how to connect to local dynamo DB in docker compose? HOT 1
- How to putItem or updateItem with conditional expression? HOT 2
- possible to make this lib like dynamoose? HOT 1
- Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type' HOT 1
- Use deno.land in deps.ts
- Assume Role With Web Identity Provider
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dynamodb.