- Newest
- Most votes
- Most comments
In the Auto Scaling Group you can just set the Minimum Capacity and Desired Capcity to zero. You can also stop your application load balancer to reduce your costs some more.
You can delete the target group, load balancer and auto scaling group. I would advise to make snapshot, if anything goes wrong you may create an image from the snapshot.
If you have auto-scaling and load balancing set up, then it's possible that the instance is being restarted due to the scaling policies defined. You can check the auto-scaling group and load balancer configuration to verify this.
To turn off your hosting and stop the instance, you can follow these steps:
- Go to the EC2 console and select the instance that you want to stop.
- Click on the "Actions" button and select "Instance State" -> "Stop".
- Confirm the action and wait for the instance to stop.
To ensure that the instance does not restart automatically, you can modify the auto-scaling group configuration:
- Go to the EC2 console and select the auto-scaling group associated with the instance.
- Click on the "Edit" button and select "Desired capacity".
- Set the desired capacity to 0.
- Click on "Update" to save the changes.
This will prevent the auto-scaling group from launching any new instances to replace the stopped instance.
To save costs, you can also consider using AWS EC2 Spot instances for your website hosting. Spot instances offer significant cost savings compared to on-demand instances, but they can be terminated by AWS with a 2-minute notice if the market price exceeds your bid.
Relevant content
- asked a year ago
- asked 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 3 years ago