I followed these instructions below to get an AWS Ethereum instance running, however since I am just learning blockchain, I would like to create an image and start/stop as needed. However when I go to EC2 and stop my instance, it restarts. I saw other posts about this being caused by elastic beanstalk but when I go to elastic beanstalk, I don't see anything there. What else could be causing it to restart? Thanks!
Asked
Active
Viewed 138 times
1
-
1Do you have an Auto Scaling Groups? Check. – Red Cricket Jan 04 '21 at 03:12
-
No, both AWS Auto Scaling and Elastic Beanstalk have nothing. – Primico Jan 04 '21 at 03:21
-
Although when I go to CloudFormation > Stacks.. one of the stacks description says "This template creates an AutoScalingGroup of EC2 Instances" – Primico Jan 04 '21 at 03:26
1 Answers
0
If you check the source code of one of its nested stacks ethereum-autoscalegroup.template.yaml, you can see that it actually creates instances in an autoscaling group (ASG).
Instances in ASG can't be stopped. However, you can terminate them, by setting desired capacity and minimum capacity
to 0 of your ASG. Then if you want to create new instances when you need them, you can change desired capacity back to 1.

Marcin
- 215,873
- 14
- 235
- 294
-
1Ok thanks. I was looking under AWS Auto Scaling > Scaling plans when I should have looked under EC2 > Auto Scaling groups – Primico Jan 04 '21 at 13:27