lambda tag

34 questions


1 answers
89 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
147 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
115 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

2 answers
107 views
0
How do I run a run test on lambda?

When running lambda, you often waste your time getting hooked on subtle behavior to behave slightly differently than when you run the handler directly.I am trying to run python with lambda, but I have...

2 years ago

1 answers
117 views
0
Can't Lambda in VPC access API Gateway?

I am currently researching API Gateway (websocket) + Lambda + RDS (via RDS Proxy) for my project, and when I set up VPC on Lambda to connect to the database via RDS Proxy, I no longer get messages fro...

2 years ago

1 answers
95 views
0
Understanding Automatic Index.html Generation Using Lambda

Understanding Automatic Index.html Generation Using LambdaYou were able to generate index.html in any bucket using python boto3.However, when you open index.html generated by lambda, the browser does ...

2 years ago

1 answers
82 views
0
Do I need to return AWS Lambda to use node.js and not perform any further processing after callback()?

I'm wondering if I should write a return right after callback() in Lambda.We have verified that the following scripts run console.log() or later:'use strict';module.exports.helloWorld=(event, context,...

2 years ago

2 answers
93 views
0
S3 Objects and Encoding

Text files are shaped in the following order:3. When putting to S3 in , the put parameter has the following: When I checked the put file on the S3 console, I could see that the metadata was set to eac...

2 years ago

1 answers
111 views
0
Please tell me how to use lambda.

It works well below, but df['flag']=df['current'].apply(lambdax:1 if x>=5000 else0)If you change it to the following, you will get an error.df['flag']=df['current'].apply(lambdax:1 if x>=df['cur...

2 years ago

1 answers
210 views
0
When I run GetObject from S3 on AWS Lambda, I get an error and I don't know what to do.

When I run GetObject from S3 on AWS Lambda, I get an error and I don't know what to do.Error Contents { errorMessage: An error occurred (AccessDenied) when calling the GetObject operation: Access Deni...

2 years ago
« - 2 - »

© 2024 OneMinuteCode. All rights reserved.