Questions tagged [aws-auto-scaling]
378 questions
1
vote
0 answers
Automatic blue/green switch-over between two AWS Auto Scaling Groups using HTTP error codes (503)
Considering this scenario:
An Auto-Scaling Group (ASG) representing the blue cluster is running a web application behind a load-balancer
Another ASG representing the green cluster is deployed with a new version of the web application, connected to…

Dennis Doomen
- 8,368
- 1
- 32
- 44
1
vote
1 answer
Kubernetes: achieving uneven/weighted pod distribution in EKS
We plan to use AWS EKS to run a stateless application.
There is a goal to achieve optimal budget by using spot instances and prefer them to on-demand ones.
Per AWS recommendations, we plan to have two Managed Node Groups: one with on-demand…

dusty
- 573
- 4
- 12
1
vote
0 answers
Spot creation failure (Using ASG with Instance Launch Template)
/* My Configuration */
EC2 Console limit : All Standard (A, C, D, H, I, M, R, T, Z) Spot Instance Requests 128vCPU
Region : ap-northeast-2
Current Instance count : 0
Currently, I've no instances running on AWS (all spot instance terminated).
And I…

mki
- 11
- 1
1
vote
1 answer
Can autoscaling be used to scale for x whenever a metric increases x times?
I am trying to build something in Terraform(but the tooling isn't relevant here) to scale ECS on Fargate based on number of messages in an SQS queue.
I've got it working so far for if the number of messages visible in SQS exceed 1000, then it will…

OpenBSDNinja
- 1,037
- 10
- 18
1
vote
1 answer
boto3 create auto scaling group
I'm trying to create an auto-scaling group with different templates and types using boto3,
hopefully, someone can assist me here :)
This is the code I used:
import boto3
client = boto3.client('autoscaling')
def…

Ben Azoulay
- 11
- 4
1
vote
1 answer
How do you run commands on ASG EC2 instance start from AWS CDK
How can I add commands to run on instance start when using AWS CDK (Typescript)

Jonathan Irwin
- 5,009
- 2
- 29
- 48
1
vote
1 answer
Nginx Using AWS Auto Scaling Group instances in configuration files with Nginx open source
I want to add the servers which are behind the AWS Auto Scaling Group to the Nginx configuration file , I see with Nginx plus there is an agent nginx-asg-sync which we can use directly and it will do the work .
Is there any possibility that we can…

Sandeep Prabhu
- 109
- 7
1
vote
1 answer
How to add custom policy to a Service Linked Role in AWS using cloudformation?
I am attempting to create an autoscaling group for my EC2 instances. These instances are encrypted by custom key, so I need to be able to inject a policy that allows the read of said key to the autoscaling group.
I decided to utilize the…

cejkapa4
- 13
- 4
1
vote
0 answers
AWS autoscaling - retain Target group instance port
I am setting up autoscaling group with Application Load Balancer in AWS. The Load Balancer target group's instance port is set to 8080(where tomcat is running on EC2). Whenever I do a instance refresh from autoscaling group to update with latest…

TinTin
- 11
- 1
1
vote
1 answer
Amazon ECS, capacity provider not able to provide required capacity
I want to create an ECS cluster with two capacity providers:
standard that uses on-demand instances
spot, that uses spot instances
ECS is going to be linked to auto-scaling groups and handle scaling for the above providers.
When defining a…

slowikps
- 181
- 1
- 8
1
vote
1 answer
give index number to ec2 instances of auto scaling group
i have an autoscaling group in AWS.
i want/need to be able to "number" those instances.
i'll explain:
lets say the ASG raise 5 instances.
i want to be able to name those instance as follows:
instance-name-0
instance-name-1
...
instance-name-4
is…

drizzt13
- 630
- 6
- 15
1
vote
1 answer
eks autoscaler and harbor registry with self signed certificate
We have our eks kubernetes cluster and a ec2 instance with harbor registry. This registry has a self signed certificate, which needs to be in the worker nodes to be able to pull/push to this docker registry. The problem is that i have to autoscale…

abdel2020
- 33
- 4
1
vote
2 answers
Auto-scaling Instances in multi-AZ environment
I am planning to build an auto-scaling group (ASG) in a multi-AZ (AZ = availability zone) network. Let's say that we ran some diagnostics and discovered that we need at least 8 instances for normal load, and 24 instances during peak times.
Here's a…

awsuser2021
- 115
- 3
- 10
1
vote
0 answers
Selenium grid not working as expected when scaled horizontally using Autoscaling group
I am running selenium grid as a docker container on EC2 instance which is controlled as part of Autoscaling group and the traffic is routed through load balancer. Test execution requests in this case. Everything is working fine when the desired…

mygitrepo
- 125
- 1
- 2
- 8
1
vote
1 answer
How can I run User Data on more than one instance?
So I know I can go into the AWS console and one by one edit the user-data, but I want to run the same user-data on all instances in the same auto scaling group. Is this possible?

mastercool
- 463
- 12
- 35