简体   繁体   中英

AWS EC2 and Lambda

I'm new to AWS. I'm using AWS Lambda to run small scripts, I created 8 different functions in Lamdba. My issue is that I always have multiple instances running all day eventhough my scripts aren't running.
I go here to check my instances ( https://console.aws.amazon.com/ec2/v2/home?region=us-east-1#Instances:sort=instanceState ) and I see 18, when I stop all the running instances new ones get created and I have no idea since why. Why is this happening?

如果您启用了CloudTrail (免费),请转到CloudTrail仪表板,您将了解启动实例的why/when/who启动者(查找StartInstances/RunInstances ),并且可以了解正在发生的事情。

There are two possible reasons for the issue:

  • Your Lambda functions launch new instances. Review code of all your functions and make sure that you have solid understanding of what this functions do
  • You have an auto-scaling group that launches new instances for you. More information about this feature here: https://aws.amazon.com/autoscaling/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM