Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cfecd2e

Browse files
committed
sample-output-and-output-dir-fix
1 parent 4d0a0e1 commit cfecd2e

File tree

2 files changed

+93
-0
lines changed

2 files changed

+93
-0
lines changed

output/comment_reply.csv

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
,parentId,authorDisplayName,replyComment,publishedAt,likeCount
2+
0,UgwG4n_g_xUJ_UjqmKN4AaABAg,Li Sun,Yes please,2019-04-30T19:03:58.000Z,1
3+
1,UgwlSnKKSll1nsTCxp14AaABAg,Srce Cde,"I'm glad that you found it useful. Please like, share and subscribe :)",2019-05-19T06:50:46.000Z,0
4+
2,UgzOqJ-5sJtDtgsY9594AaABAg,Srce Cde,I'm glad that you found it useful. :),2019-05-14T16:42:40.000Z,0
5+
3,UgzAywXZay1U5cHETGN4AaABAg,Srce Cde,I'm glad that you found it useful. :),2019-05-03T01:48:25.000Z,1
6+
4,UgxRqzISLwpj_n7vnih4AaABAg,kavya panchumarthy,"+Srce Cde yes,solved.thank you.",2019-04-12T13:59:58.000Z,0
7+
5,UgxRqzISLwpj_n7vnih4AaABAg,Srce Cde,"Thanks for stopping by.
8+
I believe you might have set trigger on the same bucket across more than single lambda function. Can you please make sure the same?",2019-04-11T13:41:55.000Z,0
9+
6,UgzL7RSxug33Q946gB14AaABAg,Shubham Bhore,"+Srce Cde sure, Thanks",2019-01-28T17:20:23.000Z,0
10+
7,UgzL7RSxug33Q946gB14AaABAg,Srce Cde,"Thanks for stopping by and sorry for the late reply.
11+
12+
I have recorded the tutorial based on your question. Hope it helps.
13+
https://youtu.be/sMOc1D245SA",2019-01-28T17:11:50.000Z,1
14+
8,UgxhFCVIvRgADfNsv1R4AaABAg,Srce Cde,Thanks.,2019-01-24T16:13:48.000Z,0
15+
9,UgyTVk23r4skfF0bKtF4AaABAg,Ramagiri Ramesh,i mean i want to forward the cloudwatch logs to s3 bucket.,2019-01-24T19:00:15.000Z,0
16+
10,UgyTVk23r4skfF0bKtF4AaABAg,Srce Cde,"Thanks for stopping by.
17+
There is no direct way to export the lambda logs to s3 bucket continuously. But certain tweaks can be done using boto3. You can set a cron job using lambda function that will export the logs periodically.
18+
19+
Another tweak is to set a lambda trigger, that will create the log export task for the specific Lambda function log group. (But I doubt on the accurate results)",2019-01-02T11:28:38.000Z,0
20+
11,Ugwg7KWb0yObZaQMW1l4AaABAg,Srce Cde,"Thanks for stopping by.
21+
You can reuse the same code for the trigger (with minor modification). Upload the image file (instead of txt/csv) and read it on lambda and process.
22+
Give it a try. Let me know if you get stuck.",2018-10-09T05:38:15.000Z,0
23+
12,UgwtP3JNM_0KJvNNsEF4AaABAg,Anson Alexander,i tried the same but logs are not getting generated,2018-10-01T09:03:59.000Z,0
24+
13,UgwtP3JNM_0KJvNNsEF4AaABAg,V,you,2018-09-30T14:53:33.000Z,0
25+
14,Ugw7mHAIQEVEO-9Wcn54AaABAg,Srce Cde,"Hi,
26+
I'm glad that it helped you.
27+
28+
I would suggest to go ahead and create role via AWS IAM service. Then create the lambda function and choose existing role; select the one that you created via IAM.
29+
30+
--Create role from templates will definitely create a role for you, but you will never know what happened in background.
31+
--Create custom role will redirect you to IAM, where you can use existing role and modify the policy (JSON) for permission or you can create the new role. In custom role you are required to define permission in JSON policy document.
32+
33+
Hope this helps. Let me know in case you require any further help or it does not answer your question. Thanks",2018-05-20T05:20:38.000Z,0
34+
15,Ugw8NKX-5CsFKfYLiP54AaABAg,Srce Cde,"Hi,
35+
Please find the CloudFormation template from below link.
36+
https://github.com/srcecde/aws-cloudformation-template/blob/master/S3-Bucket-Lambda-Trigger
37+
38+
Please make sure to edit the source of the code for Lambda and the other needful parameters based on your requirement.
39+
40+
Hope this helps. Thanks.",2018-05-15T05:37:49.000Z,0
41+
16,Ugz0gffYqIuWcY3jurN4AaABAg,Srce Cde,"Hi,
42+
I think this video might help to answer your question.
43+
https://youtu.be/EsqjHDpLpB4",2018-04-22T17:56:59.000Z,0
44+
17,Ugz0gffYqIuWcY3jurN4AaABAg,Srce Cde,Abdul Salam Do you mean name of the file?,2018-03-29T13:16:10.000Z,0
45+
18,UgxgvJW13TxCxnnKXM94AaABAg,Srce Cde,"Hi,
46+
I think this video might help to answer your question to read file content from S3 Bucket.
47+
https://youtu.be/EsqjHDpLpB4
48+
49+
This might help you serving HTML files directly from S3.
50+
https://youtu.be/PwFJRXydUmw",2018-04-22T17:59:02.000Z,0
51+
19,UgxgvJW13TxCxnnKXM94AaABAg,Srce Cde,"Yes, we can read the content from the file hosted on S3 from Lambda. I believe you can leverage the functionality of beautifulsoup to add dynamic html tags/content. I believe Lambda is powerful and more useful for short computation and not for the server. EC2 can be a good option to run/deploy a server. Hope this helps.",2018-04-02T13:09:34.000Z,0
52+
20,UgxgvJW13TxCxnnKXM94AaABAg,Max Almonte,"I mean to return an HTML response from a file hosted in Amazon S3 but adding dynamic content via a Lambda function, using Lambda as a regular http server or something 😅",2018-03-29T13:32:42.000Z,0
53+
21,UgxgvJW13TxCxnnKXM94AaABAg,Srce Cde,Max Almonte Do you mean reading the content of the file?,2018-03-29T13:17:02.000Z,0

output/parent_video_comment.csv

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
,id,comment,author,likecount,publishedAt
2+
0,UgwG4n_g_xUJ_UjqmKN4AaABAg,"Hello guys,
3+
I'm planning to do a Python tutorial series in parallel to AWS tutorials. Is this something you will be interested in? Please let me know in comments.",Srce Cde,1,2019-03-08T04:38:18.000Z
4+
1,UgwlSnKKSll1nsTCxp14AaABAg,"You made it simple and clean, thank you.",appeshreddy penumullu,0,2019-05-19T06:20:52.000Z
5+
2,UgzOqJ-5sJtDtgsY9594AaABAg,Thank you very much[Srce Cde] Chirag :) I would really appreciate your efforts. It is more helpful and understandable.,Nagarjuna Mahesh,0,2019-05-14T16:34:57.000Z
6+
3,UgzAywXZay1U5cHETGN4AaABAg,Great Job. Very clear explanation and hands on example.,J J,0,2019-05-02T20:07:37.000Z
7+
4,UgwrKLWJj6T6lPHRArJ4AaABAg,Great video for a AWS Lambda beginner :D,mahmoud mahdi,0,2019-04-18T13:26:34.000Z
8+
5,UgxRqzISLwpj_n7vnih4AaABAg,"Hi,I have added s3 bucket to lambda function.It is showing error as follows:
9+
Configurations overlap. Configurations on the same bucket cannot share a common event type. (Service: Amazon S3; Status Code: 400; Error Code: InvalidArgument
10+
11+
12+
Actually I am using aws amplify to build my serverless framework and have added hosting resource to which s3 bucket is attached and the same bucket I am using for lambda function.can you please suggest me the feasible solution for it.",kavya panchumarthy,0,2019-04-09T07:59:44.000Z
13+
6,UgzJKhi7CwMr7FcSW-V4AaABAg,Thanks bro! really helpful stuff .,JAGDISH RAM,0,2019-03-17T15:10:27.000Z
14+
7,UgzL7RSxug33Q946gB14AaABAg,"Sir, How to to triggers notification mails when file getting uploaded or deleted in s3 ...using lambda ??",Shubham Bhore,0,2019-01-25T12:27:24.000Z
15+
8,Ugx_HLmze5BjUqDoPvJ4AaABAg,Hi srce cde. this video is really useful. I am beginner of cloud and looking for more videos. Please upload. Thanks.,Faizur Devops Architect,1,2019-01-25T12:08:09.000Z
16+
9,UgxhFCVIvRgADfNsv1R4AaABAg,Nice video,Faizur Devops Architect,0,2019-01-24T05:48:24.000Z
17+
10,UgyTVk23r4skfF0bKtF4AaABAg,Can we forward the lambda logs to s3 bucket continuously ?,Ramagiri Ramesh,0,2018-12-27T11:06:31.000Z
18+
11,UgxlGzZoahVqkhWnyJh4AaABAg,TY,Tiago Almeida,0,2018-11-20T11:42:05.000Z
19+
12,UgxeGDWyCeNjHgg19WN4AaABAg,Awsome <3,Rakesh ks,1,2018-11-10T14:26:39.000Z
20+
13,Ugxqd1YSqTiSHH6a8y14AaABAg,Please make a video on data transfer from S3 to RDB using lambda(python),sunny gupta,0,2018-10-22T10:01:10.000Z
21+
14,Ugwg7KWb0yObZaQMW1l4AaABAg,hi! id like a tutorial uploading images to s3 and then call that image in my pyhton code in lambda to process it,alcina fernandes,0,2018-10-09T01:27:46.000Z
22+
15,UgwtP3JNM_0KJvNNsEF4AaABAg,who has created the log groups,Anson Alexander,0,2018-09-24T12:33:49.000Z
23+
16,Ugy9yD1IxWeLEmMItw54AaABAg,"Thanks Buddy, Really Hepful",Shyam Kishor,0,2018-07-26T21:55:29.000Z
24+
17,Ugx05mwBWEnBvkkbi5N4AaABAg,nice video,sateesh ganni,0,2018-07-26T11:23:03.000Z
25+
18,Ugz9-K0AVIxB_Vn14EB4AaABAg,Thanks for saving time.,Archit Maheshwari,0,2018-07-03T10:00:08.000Z
26+
19,UgxykNWg0fCHHkLONqh4AaABAg,I am being triggered..lol..Nice video and thanks man.,Namah Shrestha,0,2018-06-18T11:44:02.000Z
27+
20,UgxDeiDNzXSIjFKCW814AaABAg,Thank you!,Lahav Opher Lipson,0,2018-06-16T00:54:33.000Z
28+
21,UgzyxhJbyvH8HQ_gUcF4AaABAg,Really useful. thanks buddy,Ja bi,0,2018-06-08T05:43:19.000Z
29+
22,Ugw7mHAIQEVEO-9Wcn54AaABAg,"HI, it really helps me a lot! Could I ask a question? If I haven't create any role, which one should I choose? Create new role from templates or create a custom role? thank you.",Yenyu Chen,0,2018-05-20T03:34:46.000Z
30+
23,Ugw8NKX-5CsFKfYLiP54AaABAg,Thank you.. Can I get CloudFormation (SAM) template for this setup? Mail ID: [email protected],Naveen kumar,1,2018-05-14T10:52:05.000Z
31+
24,UgyW565QCY6_WFiKUjd4AaABAg,Thanks . Pls create one on the add athena partition using lambada on s3 bucket event.,Nathrao Khodve,0,2018-05-06T13:47:50.000Z
32+
25,UgywsUbOFj38ky9KplZ4AaABAg,"Thank you!!
33+
The video was really helpful",Sonia Masand,1,2018-04-14T23:27:31.000Z
34+
26,Ugw3IKDk5b9WIaJVRB94AaABAg,Thanks,Avinav,1,2018-04-12T12:12:47.000Z
35+
27,Ugxi8y-iMqj5FsScbql4AaABAg,Thanks Q,Arun Kumar,0,2018-04-03T12:48:45.000Z
36+
28,Ugz0gffYqIuWcY3jurN4AaABAg,Can we set trigger to show what file is uploaded in s3,Abdul Salam,0,2018-03-27T08:12:35.000Z
37+
29,UgxgvJW13TxCxnnKXM94AaABAg,"Very interesting tutorial, but I have a doubt, is it possible read S3 files from Amazon Lambda? For example, can I serve HTML files stored in S3 with lambda functions? Thanks a lot.",Max Almonte,0,2018-03-26T19:14:15.000Z
38+
30,UgwqC-yx4Zi5n1eagQp4AaABAg,Thanks,Bharat Patidar,0,2018-03-07T07:45:57.000Z
39+
31,Ugxr_XDAKm07yG7ioyN4AaABAg,Thank you!,Miguel Wisintainer,1,2018-03-01T00:23:36.000Z
40+
32,Ugw6WpUhT5_w6Y2ns8Z4AaABAg,nice,dasari gowtham,1,2018-01-20T07:53:04.000Z

0 commit comments

Comments
 (0)