Need simple AWS Lambda function created to access Dynamo DB
Budget: $30 – $250 CAD
I need to get a lambda function created where i can do simple insert, read and delete from a DynamoDB on AWS.
The table is very basic, One ID field (autogenerated), one text field (100characters) and one datetime value (dateInserted).
The Lambda function will look at the incoming operation (POST, GET, DELETE) and do the following;
If POST, the body will contact two form data fields One will contain a string (LID) and the other will be another string (UID). If the UID matches a hardcoded value in the Lambda function, the LID data is to be inserted as new record. Return True if success, False if fail.
If GET, the body will contain a form data field. This data needs to be queried to see if there is a record with this string. If so, return true.
If DELETE, the body will contact two form data fields One will contain a string (LID) and the other will be another string (UID). If the UID matches a hardcoded value in the Lambda function, the LID data is to be lookup the matching record and if exists, delete, Return True if success, False if fail.
If it's not too much more work I'd like to add a last accessed field to the table and this should be updated everytime a GET request matches that record.
I already have an AWS account and I am OK if you want to create in your own environment and send me details on setting it up. I've worked with Lamdba but not Dynamo DB.
The table is very basic, One ID field (autogenerated), one text field (100characters) and one datetime value (dateInserted).
The Lambda function will look at the incoming operation (POST, GET, DELETE) and do the following;
If POST, the body will contact two form data fields One will contain a string (LID) and the other will be another string (UID). If the UID matches a hardcoded value in the Lambda function, the LID data is to be inserted as new record. Return True if success, False if fail.
If GET, the body will contain a form data field. This data needs to be queried to see if there is a record with this string. If so, return true.
If DELETE, the body will contact two form data fields One will contain a string (LID) and the other will be another string (UID). If the UID matches a hardcoded value in the Lambda function, the LID data is to be lookup the matching record and if exists, delete, Return True if success, False if fail.
If it's not too much more work I'd like to add a last accessed field to the table and this should be updated everytime a GET request matches that record.
I already have an AWS account and I am OK if you want to create in your own environment and send me details on setting it up. I've worked with Lamdba but not Dynamo DB.