All Questions
12 questions
0
votes
0
answers
155
views
connecting local host with lambda to access dynamodb
How can i connecting my local host with Visual studio to lambda function to access dynamodb with API gateway and in python language. I don't want to use SAM. Just a simple lambda function to GET a ...
0
votes
1
answer
109
views
Retrieve records in DynamoDB by position
We have an application where the client needs to request some information stored on DynamoDB filtering by date. We have the service created with API Gateway and a Lambda retrieving the corresponding ...
1
vote
1
answer
979
views
How can I serializable my data because I am getting Type error in my aws lambda function [duplicate]
I am getting this error :
TypeError: Object of type set is not JSON serializable
when I am wrtting this code:
response['body'] = json.dumps(body,cls=CustomEncoder)
The function code is:
def getPartner(...
-2
votes
1
answer
706
views
Getting key error while using lambda function
I am getting this error :
KeyError: 'Ítem' Traceback (most recent call last) when I am writing the code `response['Ítem']` where response is equal to
{'Item': {'partner_id': '1002'}, '...
-1
votes
1
answer
220
views
Put in AWS Dynamo using python Boto3
I have a table in Dynamo
Now I am trying to add a new row(product) in the table.
when I am trying this with API gateway, I created a resource and created a post method with request mode Product
...
0
votes
1
answer
516
views
AWS Lambda calling DynamoDB put_item gives syntax error
I've created my first Lambda with Python to create a new entry in a DynamoDB table called Users, which has Partition key UserId of type String. I'm calling it using a POST method in my API Gateway ...
2
votes
1
answer
932
views
How do you format Python using json.dumps, to make your Lambda function respond correctly to API Gateway?
This is my first post on Stack Overflow, so hope I'm being specific enough. I am trying to integrate a Lambda function (coded in Python) with DynamoDB and API Gateway. I want the API to return a ...
0
votes
1
answer
1k
views
How to format response from DynamoDB Scan() API (Python)
I'm working on a API Gateway exercise and I'm stuck formatting the response from DynamoDB. Here is the response I'm getting:
{'Items': [{'Date': Decimal('3022020'), 'ResultID': Decimal('32'), 'Team': ...
0
votes
1
answer
286
views
How do you update DynamoDB from Jupyter Notebook via API Gateway?
I'm building a personal webscraper and I'm still in dev phase, but I want to start saving data. The problem is, I cannot PUT or POST from the notebook level, which also means I cannot iterate through ...
1
vote
0
answers
286
views
Passing path Parameters in Lambda Key Condition Expression
I want to know how we can pass path Parameters in Lambda Key Condition Expression. I have a scenario where I will be passing device_id, start_date and end_date from my REST API gateway
REST API from ...
0
votes
1
answer
166
views
Search in Dynamodb db
I'm using Lambda, API-gateway & Dynamodb using python 3.6
I have a dynamodb table for order id:
orderId (primary Key|String)
orderStatus (String)
orderCode (String)
date (String)
OrderId is unique....
0
votes
2
answers
9k
views
Dynamodb scan stops and results are returned with LastEvaluatedKey
I have a http end point - when i hit the end point with my table name as query string parameter - i only get partial results with LastEvaluatedKey
import boto3
import json
print('Loading function')
...