Been looking all over the internet for this. Like for three days or so. You broke it down in the cloud based lambda form, what I was looking for. Thank you very much and take care.
Hi Sir , I need some advise in one of my use case. I have a website which is based on html, css, javascript. Also there is one form and when user fill the form and submit then the details are recorded on DB. Hence i need to deploy the website using serverless method. As per my understanding i could use s3 to host the static part of the website and could use the lambda function with Api integration for the Dynamic functionality. But how to use s3 with lambda and api gateway. Please guide. Or if you could suggest any better approach ?
for those, who faced issue on passing data to DynamoDB. API triggers lambda, data is passed to Lambda, ***Lambda needs access to DynamoDB write the data to table*** so, add policy, "Simple microservice permissions" in the Lambda
Sir, When I am testing the api with a sample function it is not returning the customer added successfully. What could be the reason ? I have followed everything you mentioned in the video
I am getting the following upon trying to add data to dynamodb from the API gateway. { "errorMessage": "module initialization error" } Also, no data is getting added
i have an error: An error occurred (ValidationException) when calling the PutItem operation: One or more parameter values were invalid: Missing the key CUSTOMER_ID in the item. Can you help me ? Thanks a lot ;) @java Home Cloud
Nice explanation . Thank you :) Question: If i am calling my data from external api in lamdba function , then how i can upload that data to s3 bucket ? your help will be appreciated
how to use other method like get put and delete in same lambda dunction or do i need make other function for all and if i need to make other methods then how to combine those methods with the function?
i m getting this error Request: /customer Status: 200 Latency: 580 ms Response Body { "errorMessage": "Parameter validation failed: Missing required parameter in input: \"Item\" Unknown parameter in input: \"item\", must be one of: TableName, Item, Expected, ReturnValues, ReturnConsumedCapacity, ReturnItemCollectionMetrics, ConditionalOperator, ConditionExpression, ExpressionAttributeNames, ExpressionAttributeValues", "errorType": "ParamValidationEr
contact us online classroom training's & project support please contact phone number +919886611117
Your video representations not only this , but others tutorials also are one of the best, very clear and elaborate Thanks very much.
It was to the point, short and simple. Thanks for creating this content.
Glad it was helpful!
This is the best tutorial I've seen using these services. Thank you very much!
Just what I needed. Great explanation
Been looking all over the internet for this. Like for three days or so. You broke it down in the cloud based lambda form, what I was looking for. Thank you very much and take care.
Thanks Yuri, And you are welcome :-)
Content is awesome
Hi Sir , I need some advise in one of my use case. I have a website which is based on html, css, javascript. Also there is one form and when user fill the form and submit then the details are recorded on DB. Hence i need to deploy the website using serverless method. As per my understanding i could use s3 to host the static part of the website and could use the lambda function with Api integration for the Dynamic functionality. But how to use s3 with lambda and api gateway. Please guide. Or if you could suggest any better approach ?
if you are using java script then call restful api (API Gateway) from java script hosted on S3
for those, who faced issue on passing data to DynamoDB.
API triggers lambda, data is passed to Lambda,
***Lambda needs access to DynamoDB write the data to table***
so, add policy, "Simple microservice permissions" in the Lambda
Thank you so much. solved many issues
Sir, When I am testing the api with a sample function it is not returning the customer added successfully. What could be the reason ? I have followed everything you mentioned in the video
Do you have any updated version of these tutorial ? its not working anymore in my case
Thanks for your Video. You have explained very well.
Great stuff!
Make sure AmazonDynamoDBFullAccess Policy has been added to the Role Policy.
i am unable to do this sir can you please help me?
Hello,
When I tried this, I got
{
"errorMessage": "Syntax error in module 'lambda_function'"
}
Can you help me?
I am getting the following upon trying to add data to dynamodb from the API gateway.
{
"errorMessage": "module initialization error"
}
Also, no data is getting added
Thanks you so much for your tutorial! It's just what I'd searching.
i have an error: An error occurred (ValidationException) when calling the PutItem operation: One or more parameter values were invalid: Missing the key CUSTOMER_ID in the item. Can you help me ? Thanks a lot ;) @java Home Cloud
Great tutorial!!! Thank you so much.
Thank You
Nice explanation . Thank you :)
Question: If i am calling my data from external api in lamdba function , then how i can upload that data to s3 bucket ? your help will be appreciated
need more info
Really appreciate it very well
how to use other method like get put and delete in same lambda dunction or do i need make other function for all and if i need to make other methods then how to combine those methods with the function?
Abhinav tuteja
check
Serverless.com
Thank-you nice tutorial
Can u plz tell how to resolve "is not authorized to perform" error message
Things keep changing, here is the updated code to point to table object
dynamodb = boto3.resource('dynamodb')
table = dynamodb.Table('Parkings')
sir plz show how to get the data from GET method
i m getting this error
Request: /customer
Status: 200
Latency: 580 ms
Response Body
{
"errorMessage": "Parameter validation failed:
Missing required parameter in input: \"Item\"
Unknown parameter in input: \"item\", must be one of: TableName, Item, Expected, ReturnValues, ReturnConsumedCapacity, ReturnItemCollectionMetrics, ConditionalOperator, ConditionExpression, ExpressionAttributeNames, ExpressionAttributeValues",
"errorType": "ParamValidationEr
Error clearly says, you are doing a parameter validation and that is causing error.
How about Read Data?
Make sure your videos are at least 1080
Proper code using boto3 1.14.51 should be:
import json
import boto3
dynamodb = boto3.resource('dynamodb')
table = dynamodb.Table('CUSTOMERS')
def lambda_handler(event, context):
table.put_item(Item=event)
return {
"code": 200,
"message": "Customer added successfully"
}
import boto3
dynamodb = boto3.resource('dynamodb')
table = dynamodb.Table('subscribers_ID')
def lambda_handler(event, context):
table.put_item(Item=event)
return {"code":200,"massage":"OK"}
I'm getting a syntax error in line 5
Please ...pronounce English properly!
:-) Thank you for your suggestion