Questions tagged [aws-auto-scaling]
378 questions
1
vote
1 answer
ECS CapacityProvider not Scaling in
According to the docs, https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-auto-scaling.html#update-ecs-resources-cas
Looking at the services, I have 3 services.
2 Replicas are both running on a single host and a DAEMON is on both…

Tharun K
- 1,160
- 1
- 7
- 20
1
vote
1 answer
how to allocate elastip ip to autoscaling group with 1 instance
I have 1 instance in auto scaling group with min = 1 max = 1 and desired = 1
I also have an elastic ip which i want to assign single instance and also when this once instance goes down, the elastic ip should be released and allocated to the new…

srk786
- 551
- 3
- 10
- 19
1
vote
1 answer
How to change instance type in AutoScalingGroups using API?
I need to change EC2 instance type in AutoScalingGroups using API. In my case, I'm using nodejs, but it does not matter.
This link says that the only parameters from description method are…

Anthony
- 3,218
- 3
- 43
- 73
1
vote
1 answer
How to create AutoScalling Group using CDK for existing EC2 instance?
I have been exploring AWS-CDK recently and programming language I am using is Python.
Since I am a newbie in this concept, I am trying to achieve one thing: How can I create AutoScaling Group for existing ec2 instance? I assume somewhere i need to…

Aabhas Jain
- 37
- 3
1
vote
3 answers
Issue when running terraform: Error: updating Auto Scaling Group XXX: AccessDenied: You are not authorized to use launch template: XXX
I have picked up a piece of work started by a contractor who has since left, and I was told the pipeline was working, but when I run it I get this error:
╷
│ Error: updating Auto Scaling Group (XXX): AccessDenied: You are not authorized to use…

berimbolo
- 3,319
- 8
- 43
- 78
1
vote
2 answers
Auto-Scaling the CPU and Memory Usage of a Fargate-Container
Is there any way to prevent a failure of container run because of the lack of allocated resources in AWS Fargate? Is there any way to auto-scale the container if the allocated memory not enough? Many thanks in advance!

Irina Kärkkänen
- 261
- 1
- 2
- 10
1
vote
1 answer
AWS ECS - autoscaling using CloudWatch alarm does not work as expected
I have configured a CloudWatch alarm in order to trigger auto scaling for an ECS service.
The alarm is configured to trigger auto scaling when there's a certain number of scheduled activities in a step function.
But when testing with 1000+ scheduled…

David Faizulaev
- 4,651
- 21
- 74
- 124
1
vote
0 answers
Make EC2 Autoscaling scale-out more quickly for customMetric
I'm setting up an AWS EC2 Autoscaling Group (ASG) and it's using TargetTrackingScaling that is tracking a custom metric. This metric is published by each instance in the ASG every 30 seconds.
It's working fine, but I'd like the scale-out action to…

ed.
- 2,696
- 3
- 22
- 25
1
vote
1 answer
Handling Java RMI in AWS ASG
We have 2 services front end api service and a backend service. In order to get high tps we are using async calls.
End user http call lands on one of the tomcat servers in frontend
The frontend calls backend in Async with the context of the server…

Dheerendra Kulkarni
- 2,728
- 1
- 16
- 18
1
vote
0 answers
CodeDeploy does not work with ASG warm pool
I recently tried to set up a warm pool for an ASG to reduce the launch time of scaling out. But it turns out the instance launched from the warm pool got stuck at the 'pending:wait' status and did not finish the deployment which should be done by…

Baymax
- 41
- 4
1
vote
1 answer
Best configuration of Auto Scaling Group for Rails application deployed using NGINX and Puma
I am using the Amazon Auto Scaling group for Rails application deployed on an EC2 instance using NGINX and Puma. I am facing some challenges with the configuring of the Auto Scaling policy.
I am using r5.xlarge for the main instance that is hosting…

Uzair
- 716
- 9
- 16
1
vote
1 answer
how does scaling policy work with sagemaker endpoints?
based on the docs provided here , https://github.com/aws/amazon-sagemaker-examples/blob/main/async-inference/Async-Inference-Walkthrough.ipynb
I'm defining an autoscaling policy for my sagemaker endpoint ( sample code below) . I have specified from…

ozil
- 599
- 7
- 31
1
vote
1 answer
What could be the cause for :Failed to generate AWS EC2 Instance Types: WebIdentityErr: failed to retrieve credentials
Auto scaler failing with the below error.
Procedure followed for here
aws_cloud_provider.go:369] Failed to generate AWS EC2 Instance Types: WebIdentityErr: failed to retrieve credentials
cluster autoscaler failed to generate aws ec2 instance types:…

JRD
- 849
- 7
- 14
1
vote
0 answers
Change instance type based on a time schedule in Amazon EC2
I have only 1 Linux instance.
Can we auto change the instance type based on a time schedule?
Eg: During day time I want t3a.2xlarge and after evening I want it changed to t3.small based on a time schedule.

Alok Jha
- 562
- 7
- 22
1
vote
2 answers
How to always keep one EC2 instance in an auto-scaling group?
I have an auto scaling group at AWS with a few instances. I'd like to define one to be the primary one, where I'll also configure custom scripts to be run on it.
I thought I would enable the "termination protection" for this EC2 instance but it…

Cyril N.
- 38,875
- 36
- 142
- 243