Questions tagged [aws-auto-scaling]
378 questions
0
votes
1 answer
AWS AutoScaling Group Node.js Server Unhealthy
I'm trying to configure an EC2 instance Node.js web server that can use AutoScaling and LoadBalancer to adapt the server according to demand.
I have made an AMI of an EC2 instance that when manually used to create a new EC2 instance will be publicly…

Josh McGee
- 443
- 6
- 16
0
votes
0 answers
Step Scaling ASG policy via terraform
Like below is the example of target tracking ASG policy in TF docs :
resource "aws_autoscaling_policy" "example" {
# ... other configuration ...
target_tracking_configuration {
predefined_metric_specification {
predefined_metric_type…

Legitimate_Figure_4430
- 85
- 2
- 9
0
votes
2 answers
Where can I find the URL of my AWS EC2 scaling group?
I've created an auto-scaling group based on an EC2 launch template, with an internal load balancer. I'm using CodeDeploy to deploy my application on the EC2 instances.
So far so good.
However, I don't find any URL for my scaling group. If I target…

GaelF
- 877
- 1
- 6
- 8
0
votes
0 answers
How to implement EKS Cluster Autoscaling effectively
I've created an EKS managed node cluster in US-EAST-2 with the following configuration:
managedNodeGroups:
- name: eks-worker-nodegroup
instanceType: m5.xlarge
desiredCapacity: 2
minSize: 2
maxSize: 3
volumeSize: 200
…

Bryan
- 258
- 3
- 11
0
votes
2 answers
How could I setup a AWS Config rule for any changes made to my Instance?
I have EC2 Instances launching automatically from my AMI setup to a LB and ASG. I want to now configure a security service like AWS Config to monitor my EC2 Instance for any Configuration changes.
The issue I am having is knowing which rule in AWS…

Ronte
- 27
- 5
0
votes
1 answer
AWS auto scale based on result of an API
I am new to AWS and want to create an auto scale policy in AWS that launch an instance based on output of an REST API.I am not able to find if this is possible and if so how?

aman_41907
- 179
- 10
0
votes
1 answer
Is this the correct way to solve this problem or have I gone wrong?
I am told to create a Simple auto-scaling policy and using CloudWatch to trigger an increase in resources based on an alarm, I have created a target tracking scaling policy within my ASG and set the target value to 50 and with the alarm I have…

xRasp
- 41
- 1
- 7
0
votes
1 answer
Terraform couldn't destroy metrics for aws asg
Took over a legacy stack, which creates a bunch of resources with Terraform, one of which is the following asg:
resource "aws_autoscaling_group" "logstashcluster_asg" {
lifecycle { create_before_destroy = true }
name =…

JackOuttaBox
- 345
- 5
- 12
0
votes
1 answer
External subdomain pointing to Elastic Beanstalk environment
In this particular case, I have a domain in a different provider (other than AWS) and an Elastic Beanstalk (EB) application with multiple environments that each use different resources.
From the domain provider, I've created a subdomain named -…

Tiago Martins Peres
- 14,289
- 18
- 86
- 145
0
votes
0 answers
Ansible "ec2_asg" module keeps changing the desired/min/max capacity settings
For cost reasons, our ASG's in the QA environment run with desired/min/max capacity set to "1". That's not the case for Production but since we use the same code for QA and Prod deployment (minus a few variables of course) this is causing problems…

captain_booboo
- 31
- 5
0
votes
1 answer
AWS ECS Fargate: How to create a service with auto scaling with the service API
I do not understand how I can create auto scaling for a ecs fargate service with the API. I create my service with code like this with the ecs create service api:
{
"serviceName": "my-service",
"cluster": "my-cluster",
…

user1383029
- 1,685
- 2
- 19
- 37
0
votes
1 answer
Amazon EC2 CPU Utilization Percentage for Auto Scaling
I want to create a Step scaling policy and want to add instances for the below CPU utilization values
80% - 85% => Add 1 CPU instance
85% or above => Add 1 more CPU instance
My question is how I can test if that is working fine. Is there any way to…

Ali Mohsan
- 326
- 2
- 15
0
votes
1 answer
How to limit AWS autoscaling to not allow the use of a specific role?
I have a IAM role dedicated for EC2, but I would like to restrict use of this role to only certain services eg. Service Catalog. I can't do it on autoscaling level - it uses service linked role which is impossible to edit. I believe that I can…

Sebastian Zalewski
- 89
- 8
0
votes
1 answer
AWS Auto Scaling Group SNS Notifications to trigger at certain number of scaled instances
I currently have an Activity Notification set for our Auto Scaling Groups for 'launch' type. It fires based on any amount of launches. Is there a way to restrict the Notification to send only when we are over a certain amount of scaled instances?…

Zach Smith
- 5,490
- 26
- 84
- 139
0
votes
1 answer
adding a "cooldown" or a "pausetime" period between 2 or more instances while reducing the Desired Capacity
(sorry in advance as i am a newbie in aws).
I am using a cloudformation stack to manage my ECS cluster.
Let's say we have an ASG with a desired capacity of 5 ec2 instances (minSize: 1, maxSize:7), and i am manually changing the value of the desired…

serialp
- 3
- 2