Questions tagged [aws-auto-scaling]
378 questions
1
vote
1 answer
How to auto deploy latest code from CodeDeploy to an auto scaling group?
When the Auto Scaling Group creates a new instances, the code from CodeDeploy is not downloaded and installed on a newly created EC2 instance.
I've followed the documentation…

Cyril N.
- 38,875
- 36
- 142
- 243
1
vote
1 answer
Why use AWS ECS if I can deploy a multiple service docker container using EC2 Auto-scaling groups?
I use three services in my docker-compose file: Django API, Celery, and Redis. I can run this using AWS ECS for which I have to create 3 services (one for each service) and at least three tasks for each service created which seems to be expensive…

Kaushik Ganesan
- 53
- 1
- 5
1
vote
2 answers
Can i stop EC2 instance which is using auto scaling group?
I have created ec2 instance and it's part of the auto scaling group and i want to stop this instance so i can save money while this server being not used.Whenever i want to use this server that time i can start the instance.

Amin Ali
- 47
- 1
- 8
1
vote
1 answer
EC2 instance launched through AutoScaling group drains automatically quickly
We are learning AWS hands-on. We just launched an ASG with min and max capacity of 1. As soon as EC2 instance spins-up, it automatically goes under de-registration & terminates. This process continues to happen. Ec2 instance drains and then new one…

Aditya Goel
- 201
- 1
- 15
1
vote
2 answers
How to Update Auto Scaling Launch Configuration or Launch Template After Instance has been Updated
I have an EC2 instance running on AWS. It is running my application let's say Version1. I added my instance to ASG. After some days, I updated my Application to Version2. But now whenever my instance is terminated, the new instance is launched with…

Zain Ul Abideen
- 389
- 7
- 25
1
vote
1 answer
Managing Auto Scaling Group via terraform
Let say I have a auto-scaling group which I manage via terraform. And i want that auto scaling group to scale up and scale down based on our business hours .
The TF template for managing ASG :
resource "aws_autoscaling_group" "foobar" {
…

Legitimate_Figure_4430
- 85
- 2
- 9
1
vote
1 answer
AWS ECS Fargate mode - auto scaling
I have an AWS ECS Service running in the Fargate mode. My setup has two tasks running an httpd image (Apache2) listening on port 80. I have an application load balancer that redirects port 80 to a target group. That target group is configured with…

thiagoh
- 7,098
- 8
- 51
- 77
1
vote
0 answers
How to refresh AWS Autoscaling Group using Boto3 after increase instances?
I am developing an application that monitors the instances of an Autoscaling group with the goal of work with its elasticity. If the instance CPU Load is 30% or lower (and there are more than one instance) I should scale down the autoscaling group,…

Augusto Accorsi
- 317
- 5
- 21
1
vote
1 answer
Prevent Auto Scaling Group From Reporting Success to CloudFormation Until Both EC2 and ELB Health Checks Pass At Least Once
I am creating an Auto Scaling Group (ASG) with a CloudFormation (CF) template, and have enabled both EC2 and ELB health checks. What I would like to see is that CF refrain from marking the ASG as a successful deployment until the ASG meets its…

chaserb
- 1,340
- 1
- 14
- 25
1
vote
1 answer
aws RDS Storage autoscaling threshold
Can Anyone explain me how the auto-scaling works. So aws requires Maximum storage threshold be greater then allocated storage. I can not understand what will happen if I will exceed allocated storage, but still will not reach the threshold

user3338094
- 83
- 1
- 8
1
vote
1 answer
AWS Spread Placement Groups & Autoscaling
I have a service in AWS which scales automatically between a small number of EC2 instances (let's say 4) and a larger number (dozens).
When the service is running on a small number of instances, it looks like it would make perfect sense to use…

Andrew
- 2,663
- 6
- 28
- 50
1
vote
1 answer
updating the autoscaling group ips in route53 record
We have an autoscaling group with n no. of ec2 instances. We have a route53 record set (multi wieght) created which points to the ip address of autoscaling group. For every ec2 scaling action, i wanted to query the running instances in autoscaling…

user14907472
- 11
- 2
1
vote
1 answer
How to use CodeDeploy with ECS, ALB and Auto Scaling
I'm trying to use CodeDeploy and ECS with an Application Load Balancer, and Auto Scaling with a strategy on the number of request of this ALB.
I'm using this URL as some sort of tutorial, but i don't really understand how CodeDeploy will integrate…

Luxior
- 133
- 1
- 13
1
vote
2 answers
Is AWS CodeDeploy usable with ECS, AutoScaling, and a capacity provider?
First I'll explain a bit my case.
I'm using AWS console (website) to do everything that i'll speak about. I'm currently hosting a new project which is an API. I want a solution that can automatically adjust to the current trafic, and I want the…

Luxior
- 133
- 1
- 13
1
vote
1 answer
Proper way to update AWS ASG with new launch template version
I'm updating our production ASG at night to use small type of instances.
For example, using m5 type instances in business hours, and using t3 type instances at night.
For this, I update the launch template version and desired capacity of the ASG by…

Noah Gray
- 151
- 1
- 1
- 13