Query and GetItem on a DynamoDB Table | Step by Step Tutorial

preview_player
Показать описание
In this video I show you how to perform DynamoDB GetItem and Query on a DynamoDB Table. I start out by explaining my DynamoDB Table schema, followed by the question I am trying to answer with my query. From there, I create an appropriate IAM role and attach it to my Lambda function. Afterwards, I code up my queries using Python and execute them on a Lambda function.

📚 MY RECOMMENDED READING LIST FOR SOFTWARE DEVELOPERS📚

🎙 MY RECORDING EQUIPMENT 🎙

💻 MY DESKTOP EQUIPMENT 💻

📚 References:

☁Topics covered include:
- DynamoDB Table Design
- DynamoDB Access Policy
- DynamoDB IAM Role
- DynamoDB GetItem
- DynamoDB Query
- DynamoDB KeyConditionExpression
- DynamoDB Partition Key
- DynamoDB Sort Key

🌎 Find me here:

#AWS
#DynamoDB
#Lambda
Рекомендации по теме
Комментарии
Автор

The partition key and sort key aren’t supposed to be a unique combination? How come there are several PURSHASE _USA as primary key?

alexf
Автор

Since we're voting; thanks for using Python :)

KS-tfri
Автор

is there any good documentation you recommend for doing this in Java, would appreciate it, otherwise thanks a lot your videos are great.By the way with no offense meant, when you say "what's up guys" you sound/remind me of Becky from thenewBoston...

kelvinnganga
Автор

why I am not able to see the execution result as shown in video.I am just getting START, END, REPORT

shristigupta
Автор

Can you explain hoe to retrieve data items in dynamodb using Java

shaikabdulrahim
Автор

Nice Vid!. Is there a way that Dynamodb able to query multiple attributes filter like
'SELECT * FROM order WHERE userId = 1 and status IN ('processing', 'shipped') AND created_at between (2020, 2021)' by using GSI? thanks

Kdb.
Автор

9:54 Hol up, why is your data showing up so nicely? When I do this, I get some extra garbage in the dict, which the internet says is "dynamoDB JSON". It looks like: `{"Amount":{"N":"25"}, "CustomerId":{"S":"UM3DR7"}}`

Overthought
Автор

Thanks for the Lambda/DynammoDB combo, quite useful^2

leandrorampim
Автор

Would be great if this could be shown with Javascript too. Great video otherwise!

franciskolms
Автор

Thanks for the video! Never knew string greater / smaller than string is possible!

Автор

thanks, in javascript had been great too

MauriceBoulard
Автор

great tutorial !! how to connect to API Gateway?

tanmayrane
Автор

I guess get_item works internally the same as query?

windowcrystal
Автор

Excellent video. A question, how could a specific item of the obtained information be stored in a variable?

CaminoalaNube
Автор

exactly what I needed. great help thanks!

pavelow
Автор

Great video! What if I want to get a list of all primary keys that I have in a table? should I still use query and if so how?

karimfayed
Автор

Is there a reason that your output does not include the type of each value? When I try to run get_item, my output always includes the type of each value.

antoniogigliotti
Автор

Would have loved to see this being done with javascript

mtin
Автор

I know this is just a demo, but isn't the primary key (partition key and sort key) questionable since there will be many dublicates (or overwrites rather)? e.g. Several transactions of same type on one date in one region. Or do i misunderstand the primary key concept?

hellehofnar
Автор

I am new in this field. Can you let me know if we can have two connection in the same lambda. Query redshift and query DynamoDB in the same lambda . I am working in python.

aashi