Skip to main content

All Questions

Filter by
Sorted by
Tagged with
-2 votes
0 answers
22 views

I can't spur ec2 instances using autoscaling in AWS [closed]

Any fix on this? I am attaching a screenshotenter image description here
Samir Wagle's user avatar
0 votes
0 answers
13 views

Preferred AZ in AWS autoscaling group

Is there a way to allow an AWS autoscaling group to span multiple Availability Zones, but to prefer a particular one whenever possible? For example, when you have a capacity reservation in a ...
samfrances's user avatar
0 votes
0 answers
27 views

Trigger AWS Autoscale automatically

I have an Autoscale Web Application in AWS. When I don't use it, I terminated EC2 instances automatically with Lambda (with Cloudwatch). But I couldn't find an automatic structure to trigger it again. ...
MrTux01's user avatar
  • 103
1 vote
0 answers
24 views

Dynamically Update Ips of AWS Autoscaling instances in Jenkins SSH Global configuration

We have few autoscaling groups in AWS and new instances are created frequently. We are using a declarative Jenkins pipeline to publish the build artifacts to those server using publish over ssh plugin ...
S_H's user avatar
  • 11
0 votes
0 answers
83 views

EKS provisions nodes more than maxnodes using Karpenter

Currently I am using EKS with karpenter and I provision EKS cluster with values minNodes: 1 maxNodes: 2 DesiredNodes: 1 Then I setup the karpenter using this link. After Setting it up as referred by ...
Suyog Dahal's user avatar
0 votes
1 answer
424 views

Can multiple EC2 Auto Scaling Group policies be defined for a single environment?

Given an Auto Scaling Group with a single EC2 environment, am I able to create a scheduled scaling policy and a CPU target tracking policy for the ASG? For example, I would like to define a scheduled ...
Xamuel's user avatar
  • 1
1 vote
0 answers
393 views

How can I make sure that AWS does not kill tasks before auto scaling kicks in?

I work on an AWS Fargate service which has a health check configured as well as an autoscaling policy set. The application needs about 30 - 45 seconds to start. The application does receive traffic ...
sbrattla's user avatar
  • 1,630
0 votes
0 answers
144 views

Can ecs services communicate with AWS AutoScalingGroup without NAT Gateway

Initially asked this question on StackOverflow but this should be the right place... I have an architecture similar to https://github.com/aws-samples/ecs-refarch-cloudformation I would like to know if ...
user2134216's user avatar
0 votes
1 answer
277 views

Autoscaling images with EBS attached

We have an AWS EC2 instance that has an EBS gp3 SSD mounted with around 70GB. Sometimes, we do some scp orders to copy new files to this EBS, but for the rest of the time, the instance will only do ...
Learning from masters's user avatar
0 votes
0 answers
446 views

Run Github actions workflow ec2 auto scaled servers

Our application is hosted on AWS EC2, we add code updates & fix bugs every few weeks. Our code is on github and github actions does the deployment with automated & manual workflows. We have a ...
MD Nasirul Islam's user avatar
2 votes
2 answers
12k views

AWS RDS: Invalid max storage size for engine name postgres and storage type gp2: 198

I'm getting this error while modifying DB instance. Invalid max storage size for engine name postgres and storage type gp2: 198 for schedule autoscaling. This only happened yesterday, it's weird. Here ...
JamesBowery's user avatar
1 vote
0 answers
195 views

Scaling based on number of processes running on ec2 instance

I have a use case where multiple python scripts will run in parallel on ec2. They read an SQS queue and perform operations such as download from S3, parse files, split, process, and update database. ...
Rohini's user avatar
  • 55
0 votes
1 answer
64 views

How to configure VPC and subnet for EC2 Database accessible privately

I have an EC2 Postgres Database (not standard AWS RDS, but based on my own configured AMI) I have a load balancer, auto scaling group with 4 max servers in each AZ (us-west-2) My load balancer is ...
Nirav Bhatt's user avatar
0 votes
1 answer
755 views

Autoscaling Groups: what happens during scale-in if all ec2 are termination protected?

Suppose I create an ec2 autoscaling group where each instance is protect terminated. Suppose a min of 2 and a maximum of 4, I was wondering what happens if, in presence of a step policy: There is a ...
Phate's user avatar
  • 155
0 votes
1 answer
937 views

How to minimize ecs autoscaling reaction time from terraform?

When you create an ECS autoscaling policy, two alarms tag along with it: one for scaling up ("out"), one for scaling down ("in"). The scale-out ones I see created appear to sample ...
Jonas Kölker's user avatar
4 votes
1 answer
2k views

What is the best metric for auto-scaling GPU instances for machine learning inference in the cloud?

We have an API in AWS with a GPU instance that does inference. We have an auto-scaler setup with the minimum and maximum number of instances, but aren’t sure which metric (GPU/CPU usage, RAM usage, ...
elwray14's user avatar
0 votes
1 answer
1k views

Limit max number of simulataneous connections from NLB to a specific instance

I am trying to restrict maximal number of TCP connections from amazon NLB to a target group. Example of a desired scenario: We have 2 instances and NLB. The first 100 users with 100 TCP connections ...
rlib's user avatar
  • 193
0 votes
0 answers
273 views

EBS target response time increasing before CPU utilization

I'm in a company where we have an elastic beanstalk configuration and it works fine with our CICD. The only issue is that earlier today i ran a stress test (basically just disabled AWS shield and went ...
Lukas Mittun Alexander Guldstv's user avatar
0 votes
1 answer
397 views

Connect instances in auto-scaling group to EC2 instance (coordinator node) without using elastic IP?

I have a setup where I do batch computation using spot instances in an auto-scaling group. The batch computation is coordinated by a "coordinator node", which is just an EC2 instance. I use ...
Foobar's user avatar
  • 115
1 vote
0 answers
76 views

Autoscaling - lifecylehook implementation

I'm trying to implement my first ASG with a lifecycle hook and I am having this issue: LifecycleHandlerFunction: Encountered unsupported property Role The following resource(s) failed to create: [...
serialp's user avatar
  • 13
0 votes
1 answer
319 views

AWS auto scaling, "scale in" controls

I'm trying to move off a monolithic big server, that ran many jobs, into a design that uses auto scaling to build out more servers as more jobs are run. The issue I found in testing is that when the ...
RunThor's user avatar
  • 209
1 vote
0 answers
136 views

Why is Code Deploy not running in new instances generated from an Auto Scale Group?

I've setup a Code Pipeline where code is being successfully pulled from Github after every commit and then a Build phase runs specs and then a Deploy phase creates a Deployment pointing to amy ...
Erik Escobedo's user avatar
1 vote
1 answer
440 views

What is the best way to attach instance to auto scaling?

This is my first post so hope I will get the answer. I want to create auto scaling on my existing EC2 instance, so I found this approach so hope someone will tell me is it good ( or suggest me how to ...
mawerick_1's user avatar
0 votes
1 answer
64 views

Configure a new kubernetes node automatically

I configured a Kubernetes cluster with GPU in AWS, and one of the steps is configuring the nodes to enable Nvidia runtime by default. So when I configured cluster auto scaler, the cluster scales up ...
Sadmi's user avatar
  • 11
1 vote
2 answers
3k views

powershell user data script run on restart of the Windows instance

We have windows servers that do application initialization which takes almost 3-4 hours for servers to be online. So to avoid downtime we use autoscaling group lifecycle hooks. Now we want to shut ...
Shailesh Sutar's user avatar
0 votes
2 answers
131 views

Production level Auto-scaling in AWS

I have completely understood the concept of Auto-Scaling in AWS. My only question is, what AMI will the launch configuration use while in production environment? According to my understanding Image ...
Subramanian Lakshmanan's user avatar
0 votes
1 answer
1k views

Terraform waits for ASG removal while doing graceful shutdown of EC2 instances

I use Terraform to set up ASG for my worker servers running sidekiq. On deploy when AMI image_id changes the instances require long graceful shutdown before terminating to finish job processing (max. ...
ahes's user avatar
  • 95
5 votes
1 answer
1k views

AWS Beanstalk Auto-scaling Scaling Triggers with UnhealthyHost count and Health Checking

I have my scaling triggers set to look for an un-healthy host count but it does not seem to be working. Now to test this - I am SSHing into one of my instances and halting the HTTPD service. Then, ...
rugbert's user avatar
  • 93
0 votes
1 answer
103 views

Reengineer a Glassfish Cluster to be used with AWS Auto Scaling and ELB [closed]

I am in my learning path for the AWS Solution Architect exam. Please consider this question under this point of view, an auto assignment :-) As an exercise for the reliability pillar I am trying to ...
Leonardo's user avatar
  • 103
0 votes
2 answers
3k views

How to auto-scale ec2 instances with an encrypted root volume?

I am trying to configure an autoscaling setup in AWS where the Node Launch Template includes encrypting the root volume (EBS). I have configured a service linked role, and a CMK in Amazon KMS with an ...
TommyKTheDJ's user avatar
0 votes
1 answer
1k views

CloudWatch Alarm doesn't show Auto Scaling Groups

I'm trying to trigger an EC2 auto-scaling based on a CloudWatch alarm. I've created the auto scaling group in EC2 - same region and account - but when I try selecting it from the CloudWatch console, ...
David_Springfield's user avatar
1 vote
0 answers
630 views

AWS CodeDeploy skipping all instances while AS terminates a instance

We have a AWS CodeDeploy set up in our AWS environment. Yesterday, while CodeDeploy was deploying the code on all the instances, one of the instances got terminated by the AutoScaling group and ...
Axel's user avatar
  • 501
5 votes
3 answers
3k views

How to change Elastic Beanstalk launch configuration to launch template?

I want to replace the launch configuration with a launch template for my existing Elastic Beanstalk environment. In the EC2 dashboard I created a launch template and selected it in the existing EB ...
Manuel's user avatar
  • 235
4 votes
1 answer
938 views

How do I create an AWS autoscaling policy to match the size of an SQS queue?

I am building a render farm using SQS and autoscaling group(s). I believe my use-case is one of the few where I actually want my group's capacity to match the size of the queue, up to a limit. Right ...
Brennan's user avatar
  • 91
1 vote
2 answers
1k views

Is it possible to scale up an AWS ECS cluster when a Scheduled Task runs?

I have an AWS ECS cluster whose only purpose is to run a scheduled task every 12 hours. Currently, I leave the cluster scaled to 1 instance so the task has somewhere to run. I would instead like to ...
jth's user avatar
  • 111
1 vote
1 answer
217 views

Where do I store data in AWS AutoScaling Group?

I have been using the Bitnami multi-tier WordPress stack on AWS. I know how to use autoscaling on AWS, but none of the documentation has showed me where to store changeable data files when using ...
paradroid's user avatar
  • 878
0 votes
0 answers
133 views

AWS ECS Cluster Autoscaling

I am trying to setup a scaling policy in ECS Cluster, so that EC2 instance that make up ECS cluster and task runnning in ECS Service could scale up and down based on the scalling policy i specified. I ...
Sreeraju V's user avatar
1 vote
1 answer
8k views

Launching a new EC2 instance. Status Reason: Not authorized for images: Launching EC2 instance failed

I recently created an auto scaling group in AWS using an AMI. The instance terminated and in an attempt to re-launch the instance, I got a failed response. The error description is Launching a new ...
N. Felix's user avatar
2 votes
2 answers
1k views

How to use Aws code-deploy with Auto-scaling group

We have auto-scaling group behind an Application load balancer which launches instances if the avg. CPU Utilization goes beyond 70%. We have created a base AMI for the auto-scaling group. But the ...
Axel's user avatar
  • 501
3 votes
1 answer
2k views

How to dynamically set tag values in an AWS auto-scaling group

I'm trying to create an AWS auto-scaling group, and I want my instances to have a tag with Key=Name and Value=processor%i, where the "%i" is dynamically replaced with a 1, 2, 3, etc as the instances ...
Cerin's user avatar
  • 3,670
3 votes
1 answer
3k views

How to properly deploy new code to AWS EC2 AutoScaling Group

Scenario: Currently, we have a single production server running on an EC2 instance. Since we are getting a lot of traffic, we would like to use the Autoscaling feature, but we are kind of new to this. ...
Pratish Shrestha's user avatar
0 votes
1 answer
444 views

AWS autoscaling stack of multiple servers

I have a stack of 2 AWS instances running 3 servers in a chain: (Server 1) Apache2 and PHP-FPM (Server 2) Varnish + Nginx for SSL termination These servers are separate as I expect the Apache Server ...
jdog's user avatar
  • 131
3 votes
1 answer
11k views

AWS Elastic Load Balancer and target group health check fail for no apparent reason

I have completed my AWS ELB architecture for our website and successfully created the Launch Configuration and Target Groups for which instances are created behind the Load Balancer. My configuration ...
wlarcheveque's user avatar
2 votes
1 answer
4k views

Why is my autoscaling group instance unhealthy?

I'm noticing a very strange issue with an AWS auto-scaling group. Instances are being reported (incorrectly) as being unhealthy. The instances are then being terminated and replaced unnecessarily. ...
user1751825's user avatar
1 vote
1 answer
2k views

ALB for multiple auto scaling group

I have 3 instances as staging for the frontend, backend, and blockchain. I'd like to create an autoscaling group for both three instances separately. There will be 3 autoscaling groups. Is there ...
MD. Ashfaqur Rahman Tahashin's user avatar
21 votes
2 answers
21k views

AWS Fargate service: scale to zero?

I've recently migrated a small web application to AWS using Fargate and Aurora Serverless. The application doesn't get much traffic so my goal is to save cost while no one is using it. Aurora ...
computmaxer's user avatar
1 vote
1 answer
1k views

AWS autoscaling: How to kill the machines that are not busy

We have an autoscaling group that spawns worker servers. Each worker server runs celery processes. We monitor the celery queue length using cloudwatch and depending on that queue length we spawn/kill ...
Ranjith Ramachandra's user avatar
0 votes
1 answer
534 views

AWS Autoscaling Group: Invalid fleet configuration Error

Using Terraform to create Autoscaling Group in AWS. Using mixed_instances_policy in aws_autoscaling_group resource of Terraform. resource "aws_launch_template" "go_app" { image_id = ...
Parth Jaggi's user avatar
3 votes
1 answer
209 views

Host discovery in AWS VPC

I just have a basic question. What is the recommended way to handle automatic host discovery in an AWS VPC? I have these Servers running and I want to figure out a neat way to skip having to configure ...
J Selecta's user avatar
6 votes
2 answers
4k views

AWS Autoscaling Group won't honor five minute draining policy of the Target Group when scaling down

We have an Autoscaling Group in AWS that we manually scale up and down at the time being. Our ASG is currently attached to one Target Group, which has all of our prod servers in it. Before using the ...
Michael Davidson's user avatar