The Connect to DynamoDB docs page has snippets of useful information but is ultimately a let down as there are large gaps that need filled in on your own. It would be far more useful to have a complete working example. Specific issues:
Gather credentials from DynamoDB
My experience in getting credentials was different to this. This may be my inexperience of using AWS, but should be checked for currency.
Write code that connects to DynamoDB
By referencing new ApiFactory().makeNew(DynamoDB) I am assuming that you are referencing https://deno.land/x/aws_api but there is no mention of this anywhere on the page nor any imports anywhere to guide you. Also, there is a strong caveat to using this library, namely:
Do not use this module in mission critical stuff. It's supposed to be for automation scripts, quick & dirty pieces of infrastructure, and prototype microservices and so on. If you just want the real, full-fat AWS SDK, a port of it has been uploaded at /x/aws_sdk.
Either use this library and highlight the caveat or show the example using the official AWS SDK.
Also, this line const data = await client.send(command); is thrown in without any suggestion where command comes from, how to construct it, what it looks like, etc.
Describe the solution you'd like
The docs for this are too light, much is left to the reader to work out and do a disservice to anyone attempting to follow them. Either this example should be properly and more thoroughly completed or this page removed.
Describe alternatives you've considered
As per above, complete this example or remove this page.
What problem are you trying to solve?
The Connect to DynamoDB docs page has snippets of useful information but is ultimately a let down as there are large gaps that need filled in on your own. It would be far more useful to have a complete working example. Specific issues:
My experience in getting credentials was different to this. This may be my inexperience of using AWS, but should be checked for currency.
By referencing
new ApiFactory().makeNew(DynamoDB)
I am assuming that you are referencing https://deno.land/x/aws_api but there is no mention of this anywhere on the page nor any imports anywhere to guide you. Also, there is a strong caveat to using this library, namely:Either use this library and highlight the caveat or show the example using the official AWS SDK.
Also, this line
const data = await client.send(command);
is thrown in without any suggestion wherecommand
comes from, how to construct it, what it looks like, etc.Describe the solution you'd like
The docs for this are too light, much is left to the reader to work out and do a disservice to anyone attempting to follow them. Either this example should be properly and more thoroughly completed or this page removed.
Describe alternatives you've considered
As per above, complete this example or remove this page.
Documentation, Adoption, Migration Strategy
No response