Lambda pricing for Starting and Stopping Ec2 instances

0

Hi Team,

Please let me know how to calculate the lambda pricing for starting and stopping EC2 instances.

Regards, Rajesh B

3개 답변
0

Lambda has 2 cost dimensions: Number of invocations and GB-s. I assume you will invoke the function once to launch the EC2 instance and once to stop it. This means 2 invocations. For GB-s you should probably use a function with a small amount of memory. The function will run for a short period as the Start instance and Stop instance are asynchronous. If you want to wait until the instance is actually running or stopped, you will need to run a loop to check the status. In that case, I would recommend to use Step Functions instead of a Lambda function.

profile pictureAWS
전문가
Uri
답변함 일 년 전
0

Dear Rajesh,

Try using AWS pricing calculator . I don't think it will cost that much if you are going execute lambda 4-6 times a day.

  1. https://calculator.aws/#/addService ,2. https://s3.amazonaws.com/lambda-tools/pricing-calculator.html

Best Regards, Vikas

profile picture
Vikas
답변함 일 년 전
0
profile pictureAWS
전문가
kentrad
답변함 일 년 전
profile picture
전문가
검토됨 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠