Questions tagged [aws-auto-scaling]

378 questions
0
votes
0 answers

AWS Elastic Container Service (ECS) Auto Scaling is not creating new instances when required

I am trying to create an application where every time user clicks a button, I create a task on ECS. The problem is when the CPU is fully utilized in an ECS cluster, the auto-scaling group is not spinning up more EC2 instances in that cluster. Thus,…
0
votes
0 answers

Order of instances in Auto Scaling Group

When I use AWS CLI to query the composition of some Auto Scaling group (via describe-auto-scaling-groups) I get the list of running EC2 instances: is the order of the instances consistent among runs? How are they sorted?
Don
  • 16,928
  • 12
  • 63
  • 101
0
votes
2 answers

AWS ALB in front of one server

I have a server (apache/php) running the front end of saas platform. This will not receive high traffic and therefore does not need load balancing. Does it make sense to add load balancer and auto scaling group (with count of 1 server) for security…
0
votes
2 answers

IAM Policy with action: autoscaling:AttachLoadBalancerTargetGroups, Filters access based on the ARN of a target group is not working

We have an autoscaling group with 2 target groups. We want to allow a team to Detach/Attach one of these target groups and prevent them from detaching/attaching the other one. So we build this IAM Policy Statement: { "Sid": "AsgPolicy", …
Souad
  • 4,856
  • 15
  • 80
  • 140
0
votes
1 answer

Overriding AWS auto scaling policy with Lambda function

I am working on aws autoscaling policy and is completely working fine with desired 2, max 3 and min 1 as count of instances. I also have one lambda function which starts my ec2 instances at 9am and stop my ec2 instances at 6pm. This lambda function…
0
votes
1 answer

How to deploy Kafka connector on AWS with auto-scale group

it looks like if we like to set up Kafka connector in distributed mode, we will need to have a unique hostname at CONNECT_REST_ADVERTISED_HOST_NAME. However, if we deploy the connector on AWS with an auto-scale group, there is no known hostname for…
carfield
  • 2,011
  • 2
  • 15
  • 15
0
votes
3 answers

AWS-CLI: How do I filter autoscalinggroups

Unable to find example to use filters https://docs.aws.amazon.com/cli/latest/reference/autoscaling/describe-auto-scaling-groups.html#options
bhargav joshi
  • 329
  • 3
  • 6
0
votes
1 answer

AWS Cloud Formation not replacing insances

I have created an autoscaling group with aws cloud formation but anytime I change the userdata, the instances don't get replaced. Is there a way to force this behavior?
0
votes
3 answers

Cluster autoscaler - auto label node in AWS

https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler Use case - installing a deployment with nodeSelector. No existing node label matches. Autoscaler won't scale up. Anyone aware if autoscaler is capable of labeling fresh EC2 if…
Łukasz
  • 1,980
  • 6
  • 32
  • 52
0
votes
2 answers

AWS ASG Error State transition reason Server.InternalError

Error:- State transition reason: Server.InternalError Client.InternalError: Client error on launch When using the launch template to launch the instance it is working fine but if i use ASG with launch template getting above error on ec2…
0
votes
1 answer

IAM permission to retrieve LaunchTemplate's LatestVersionNumber attribute in AWS::AutoScaling::AutoScalingGroup

While developing a CloudFormation template, I am following the principle of least privilege. So I am providing CloudFormation a role to assume, and which has the minimal set of privileges. The template contains an AWS::AutoScaling::AutoScalingGroup…
maslick
  • 2,903
  • 3
  • 28
  • 50
0
votes
2 answers

How to deploy a single web application(nodejs+reactjs) on two EC2 server for load balancing and autoscaling?

My client is asking me to deploy web application (nodejs backend+reactjs frontend) on two EC2 servers. Inorder to achieve good load balancing and autoscaling based on traffic, Note: client doesn't want to go for single server of high version
0
votes
1 answer

How to remove the public IP auto settings from an Auto Scaling Group?

I've set up an Auto scaling group that triggers new EC2 instances and this works fine, but in my initial iteration, I somehow activated the fact that EC2 instances need a public IP, but I don't want that. Unfortunately, I can't find where in my…
Cyril N.
  • 38,875
  • 36
  • 142
  • 243
0
votes
0 answers

Cluster autoscaler scales down nodes when it is not supposed to

Cluster autoscaler scaled down our nodes even when we have the scale-down-enabled set to false Is there any additional configuration needed to ensure scale down does not happen?
0
votes
1 answer

AutoScale - ScaleOUT in daytime and ScaleIN at night?

We have more traffic in the daytime and less traffic at night for our website. I want to enable a minimum of 2 servers to run in the day and only one at night so that we can cut costs by minimizing server run time.