Questions tagged [aws-auto-scaling]
378 questions
0
votes
1 answer
AWS Auto-Scaling Testing
How do I test if my AWS auto scaling is working fine? Any lead to find a way to test this feature through Automation ? My aim is to make load on the servers and check if new AWS instances are spinning up and down as per requirement (through…

Agnip
- 24
- 3
-1
votes
1 answer
EC2 Instance is not registered on ECS
I am trying to add EC2 to ECS as container instance by using AutoScalingGroup.
However, EC2 launched correctly but, it is not registered to ECS.
I have checked the prividge, however it corrects.
And no error in cloudtrail.
Then, I have tryed the…

whitebear
- 11,200
- 24
- 114
- 237
-1
votes
1 answer
schedule a EC2 to start and Stop by auto Scaling
I want to schedule an Ec2 for start and stop by auto scaling, is it possible? If it is how can I?
I want to schedule an Ec2 for start and stop by auto scaling without lamda function.

Geralt
- 17
- 3
-1
votes
3 answers
How to suspend ASG according to my Ec2 Auto-start and stop schedule
I am facing an issue that I have integrated a lambda function for auto starting and stopping of a EC2 instance according to my office hours. However, The issue is that EC2 is on ASG and ASG creates redundant Instance automatically.
Could someone…

Mirza
- 33
- 5
-1
votes
1 answer
Terraform AWS LB Destroy Tears Down ASG
At the moment Terraform v1.1.7 is used to create AWS ASG's and a LB.
The LB TG's are attached to the ASG's via the following external attachment resource:
resource "aws_autoscaling_attachment" "gateway_lb_attachment" {
for_each =…

Theo Sweeny
- 1,033
- 14
- 26
-1
votes
1 answer
How to toggle ASG to use launch_configuration or launch_templated
I am working on migrating our infrastructure code from launch_configuration to launch_template. I want to use either launch_configuration and launch_template based on the AWS region.
How can i use aws_autoscaling_group resource to pick…

Karthik
- 107
- 1
- 10
-1
votes
2 answers
Listing duplicate strings of a list in another list
I have the following issue :
I have been asked to write a python script to list every pair of duplicate names.
The problem is that just a part of the string is similar, the last part is numbers (deployement time), for exemple :…

LightGFX
- 1
-1
votes
2 answers
How to get IP address of the newly span up instance of AWS Auto Scaling Group
Not sure if this is a duplicate, but I would like to get an IP address of the new span up instance of AWS Auto Scaling Group.
How can I achieve this?
I want either a lambda function or maybe a script. What I want is, once an instance is spin up, get…

Shammir
- 927
- 4
- 17
- 32
-1
votes
1 answer
AWS autoscaling policies conflict
I have 2 autoscaling policies in AWS one for CPU and one for memory restore when CPU goes high autoscaling adds one instance but as memory restored policy terminates that instance quickly
-1
votes
1 answer
Is an EC2 Instance's server code copied to other instances that are part of the Auto-Scaling Groups once they launch?
Question in title. Just wondering how this works: if you have an EC2 instance which serves some code (let's call it a simple web server), how is this code copied to the other EC2 instances if they are launched as part of the Auto-Scaling Group? I…

beyondtdr
- 411
- 6
- 17
-1
votes
1 answer
AWS alarm is triggering scaling out a 2nd time (before new tasks come up)
I was looking for some input about AWS auto-scaling.
I'm running into an issue where AWS is scaling out twice in a row even though there's only a pretty small traffic increase.
I've got an alarm set up to add 2 tasks when my RequestCountPerTarget…

Andrei
- 513
- 2
- 8
- 15
-1
votes
2 answers
How can we scale up instances in AWS by schedule action
Is this possible in AWS auto-scaling that I want to scale-up my instances by every 5 min by 2. That mean if my running instances are 2 so after 5 min it will be 4 then next 5 min it will be 6 and so on...
How will I achieve this in auto-scaling…

shubham kamboj
- 101
- 1
- 11
-2
votes
1 answer
Getting Unsupported block type error in Terraform
I am getting Unsupported block type error related to autoscaling group. Specifically, I'm getting the following error:
Error: Unsupported block type
│
│ on main.tf line 67, in resource "aws_autoscaling_group" "ASG_asg":
│ 67: scaling_policy…

Ankit Singh
- 13
- 1
-2
votes
1 answer
AWS - Scalability for our web site and App
We have a PHP web site with admin login and Android App. We are using admin login to add/remove products in the web site and customers uses the App for purchasing items.
Currently we are using single VPS server for the same.
We are planning to move…

Support
- 1
- 1
-3
votes
2 answers
Error: Can't access attributes on a list of objects (AWS-terrafrom)
While creating auto_scaling_group with terraform, error showing:
omkar@kws MINGW64 ~/repo/kiwi-infra (main)
$ terraform validate
╷
│ Error: Unsupported attribute
│
│ on main.tf line 46, in module "asg":
│ 46: tg = "${module.alb.tg}"
│ …

Omkar
- 1
- 2