Questions tagged [aws-auto-scaling]

378 questions
0
votes
1 answer

Launch Template reference latest AMI built by codepipeline

I have codepipeline that creates an AMI and I have created separate Cloudformation stack to create Launch template that uses the AMI. Currently the Launch Template Cloudformation has the AMI imageID hard-coded like this LaunchTemplate: Type:…
0
votes
1 answer

Error trying to use codedeploy to load code onto a auto scalable group of EC2

When I try to run codedeploy, I get the following error : The overall deployment failed because too many individual instances failed deployment, too few healthy instances are available for deployment, or some instances in your deployment group are…
0
votes
1 answer

How to see traffic being routed between 2 Instances from my Load Balancer?

I currently have a Load Balancer that routes traffic between Instances created from my Auto Scaling Group. For example when 2 Instances are launched from my ASG scaling, what are some ways to go abouts demonstrating traffic being routed from my Load…
0
votes
0 answers

User-data not displaying with each Instance created

I have created an AMI from an Instance with the user data #!/bin/bash yum update -y yum install httpd -y systemctl enable httpd systemctl start httpd which starts the Apache server, within I have a index page where Instance details are stored so…
0
votes
2 answers

Static private IPs on known numbers of Autoscaling EC2 instances

I am building a workflow that goes from AWS MediaLive to a set of 2x EC2 instances residing on 2 different availability zones. The EC2 instances are spun from and autoscaling group that is set to always keep 2 instances running (1 per AZ). Per sé…
0
votes
0 answers

Launch instance on service deployment

I am using Terraform to deploy an ECS EC2 cluster on AWS. My pipeline is creating a new task definition from docker-compose, then updates the service to use this task definition. Desired count is 1, deployment_minimum_healthy_percent is 100 and…
0
votes
1 answer

Identify Hardcoded DNS Records for ECS Instances

I have a docker image that I need to deploy, while maintaining a consistent DNS record. On top of that, I'd like to have a hard coded number of instances (for example, 2). I like the ease of ECS as well as ECS agent maintaining uptime, but a load…
traw1233
  • 1,895
  • 2
  • 12
  • 12
0
votes
1 answer

Why scale in matrics not created when using terraform autoscaling?

I am using terraform as IAC, I have the following policy: resource "aws_appautoscaling_policy" "ecs_policy_cpu" { name = "cpu-autoscaling" policy_type = "TargetTrackingScaling" resource_id =…
helpper
  • 2,058
  • 4
  • 13
  • 32
0
votes
1 answer

Multiple template files with autoscaling groups and launch configurations with Terraform

I have 3 autoscaling groups all using slightly different template files. The difference in the 3 template files I have is, each template file is attaching a different EBS volume upon startup of an instance in the autoscaling group. I am trying to…
0
votes
1 answer

AWS Simple Scaling - Will it scale in back automatically after scale out?

We are using AWS Simple Scaling policy to scale out our EC2 instance. My company will not consider other AWS scaling method ATM. Add 2 capacity units when CPUUtilization >= 70 for 5 consecutive periods of 60 seconds for the metric dimensions So,…
TNG
  • 1
  • 3
0
votes
1 answer

How can I run AWS Lambda function immediately in Auto Scaling event?

Background I am running a multi-instance service under an EC2 Application Load Balancer (ALB). I am using an Auto Scaling Group (ASG) to increase and decrease instances based on load. When the ASG does a Scale-In and terminates an instance, I need a…
0
votes
0 answers

Elastic Beanstalk does not deploy the app after autoscaling

So because of NetworkOut < 2000000 for 1 datapoints within 5 minutes policy in the autoscaling group my instance got terminated. Then it created a new instance but did not redeploy my app on the new instance. Why is that? Shouldn't it be…
0
votes
1 answer

AWS Application Scaling - Step Scaling policies

I was reading through this AWS DOC https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html around Application Auto Scaling Step policies as target auto scaling policies won't work for my use…
0
votes
1 answer

what happens to aws auto scaling group when we rebuild the elastic beanstalk env?

what happens to aws auto scalling group when we rebuild the elastic beanstalk env? It says it deletes RDS. Does this delete auto scaling group as well? If yes can we recover deleted ASG?
0
votes
2 answers

how to get the instance ids in a autoscaling group using AWS Lambda function Python

I'm new to coding I want to get the instance ids of an autoscaling group using AWS lambda function