aws-lambda tag

21 questions


1 answers
451 views
0
aws cannot connect to rds from lambda function

I would like to create a linebot with aws-lambda.When I wrote this code to connect to the database created by aws-rds via PyMySQL, I got an error.def pickupDatabase(): rds_host=rds endpoints name = rd...

1 years ago

1 answers
399 views
0
Understanding Lambda Decision Errors for Phone Numbers Registered in DynamoDB

Regarding the reference error below, I think there is something missing, but I can't find out what is missing.Thank you for your cooperation.Error Contents errorType: ReferenceError,errorMessage: requ...


1 answers
403 views
0
If a command such as mysql command remains in the shell in the code of lambda, the authentication information remains in the log.

If you type a command that leaves authentication information, such as the mysql command, in the shell in the lambda code, the authentication information will remain in the log.What should I do to avoi...

2 years ago

1 answers
341 views
0
If a command such as mysql command remains in the shell in the code of lambda, the authentication information remains in the log.

If you type a command that leaves authentication information, such as the mysql command, in the shell in the lambda code, the authentication information will remain in the log.What should I do to avoi...

2 years ago

1 answers
481 views
0
Is it possible to set the prefix to a dynamic value when uploading the file of s3 and igniting lambda?

With s3 attached to lambda, set s3 prefix to test/{dynamic-id}/photo-id/ from the configuration trigger and I uploaded the file with the test/1/photo-id of the s3 bucket, but the lambda function is no...

2 years ago

1 answers
432 views
0
AWS Lambda Test KeyError (Python 3.9)

I am a beginner at lambda and python.Executed the following code:import boto3import jsonfrom collections import OrderedDictdef handler(event, context): # Define required constants BUCKET_NAME=event ['...

2 years ago

1 answers
393 views
0
How do I copy files from Amazon S3 to FSx for Windows?

I'd like to use Lambda (Python) to copy the file to FSx for Windows as a trigger that was saved in S3.However, the search engine cannot find the search results.Not in official documentation:https://do...


1 answers
94 views
0
IMPLEMENTATION METHOD OF ID TOKEN REISSUE BY REFRESH TOKEN

We authenticate with an id token on AWS cognito.If the token expires, we are planning to reissue the id token using the refresh token to continue the http request.When trying to achieve the above, is ...

2 years ago

1 answers
156 views
0
AWS Lambda Cannot Execute External Commands

exports.handler=function(event, context){ var exec = require('child_process').exec; exec('./youtube-dl --version', function(error, stdout, stderr){ if(stdout){ console.log('stdout:'+stdout); } if(stde...

2 years ago

1 answers
125 views
0
How to Start an EC2 Instance in Lambda and Stop the Instance After Executing the Command

I would like to start the EC2 instance of Ubuntu that is stopped, run the script, email the results, and then stop again.I wrote and ran Lambda functions like this:import boto3instanceId='i-xxxxxxxx'i...

2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.