Questions tagged [aws-auto-scaling]

378 questions
2
votes
2 answers

is there a way to create a launch configuration using an encrypted AMI?

I am creating an autoscaling group but the launch configuration keeps on failing because I am using an encrypted AMI (have to for security), but it crashes after the timer and give this error: Error: "autoscaling group": Waiting up to 5m0s: Need at…
2
votes
0 answers

Can you control write speed to DynamoDB using Boto3?

I need to write to DynamoDB which is Autoscaling enabled, my goal is: best utilize provisioned capacity according to its changing capacity (by Autoscaling) without or with little "throttled writes" We are using batch_writer() at the moment, the…
JQ.
  • 678
  • 7
  • 17
2
votes
2 answers

How can I replace a specific instance in an AWS Auto Scaling Group?

I'm looking for a procedure that I can use to replace a specific instance in an AWS scalegroup, all the while maintaining AZ "balance" and not reducing capacity while waiting for a new instance to provision. Occasionally, we may have reason to…
Peter McEvoy
  • 2,816
  • 19
  • 24
2
votes
1 answer

Configuring auto scaling with multiple target groups

Is it a good practice to setup 1 autoscaling with multiple target groups. All the target groups registered with same load balancer. The scenario is Application load balancer LB1 listens on 80 and 443, has the target groups: "open" Port is…
prassank
  • 135
  • 1
  • 9
2
votes
1 answer

Error creating application autoscaling target on AWS when using Terraform - Defining `scalable_resource` for custom `aws_appautoscaling_target`

Goal I'm implementing an auto-scaling solution for Kinesis data streams. One possible solution, which I am following, is well documented in the aws-samples/aws-application-auto-scaling-kinesis repo. However, the sample code utilises a…
2
votes
1 answer

How to reference `AWS::CodeDeploy::DeploymentGroup::LoadBalancerInfo?`

I'm trying to link my LoadBalancer and TargetGroup with DeploymentGroup, when I run the template it says " Property LoadBalancerInfo cannot be specified." here is snapshot of my template. is my template correct ? EC2TargetGroup: Type:…
2
votes
1 answer

Attaching a target group of ALB to an Auto-scaling group

We know that in order to attach an Application/Network load balancer for an auto-scaling group, we need to attach the target group(s) to the existing Auto-scaling group in order to distribute the load. In the case of the Classic Load Balancer, we…
1
vote
1 answer

Pushing metric data to Cloudwatch for custom auto scaling

We would like to autoscale based on SQS size. I was able to follow the below link and add custom autoscaling policy across the auto scaling…
1
vote
0 answers

Why is my ECS cluster with AutoScaling group as capacity provider not working?

No Container Instances were found in your capacity provider I want to use an autoscaling group as capacity provider for a ECS Cluster. Even tho I just want one container per container instance I chose the awsvpc as the network mode of my task…
1
vote
0 answers

aws cdk/cloudformation autoscaling dont start instance before lifecycle hook is enabled

I have a cdk project with an autoscaling group and lifecycle hooks. The lifecycle hooks trigger a lambda via an Event Rule. When I deploy, the following happens: The ASG gets created => And immidatly starts an instance without lifecycle hooks. The…
Nathan
  • 7,099
  • 14
  • 61
  • 125
1
vote
0 answers

AWS TCP Load Balancing Across multiple ports on the same EC2 instance

I have a requirement to have an AWS load balancer that listens on a non standard port and routes connections to different ports on the same EC2 instance(s), treating each port as a unique target. The Ec2 instances would be depoloed using Auto Scale…
1
vote
1 answer

Setup Network Interfaces in cloudformation for EC2 LaunchTemplate

Goal: Setup EC2 launch template for ASG, with Network interface settings. Detail: ASG is to be launched in public subnet, and trying to avoid having a public IP. Example CFN extract "NetworkInterfaces": [ { …
Efren
  • 4,003
  • 4
  • 33
  • 75
1
vote
1 answer

Why does my Auto Scaling Group leave behind an older launch template?

I have an ASG with OldestLaunchTemplate set as the termination policy. One step of our deployment builds the app, creates a new launch template, and sets the ASG to use that current launch template and completes. The following step scales out the…
1
vote
0 answers

How can I use single pre-resgistered ip for outbounding request to specific host

I need to use external 3-rd party API, and it's vendor requires us to register IP address for the request source. But with elastic beanstalk along with application load balancer and auto scaling group, all public IPs assigned to each ec2 instances…
1
vote
1 answer

An error occurred (UnauthorizedOperation) when calling the DescribeLaunchTemplates operation?

I was trying to deploy launch template in my AWS autoscaling group using ansible! Here was my script - name: base64 conversion command: base64 -w 0 roles/inspect/tasks/user_data_cs.sh register: userdata - debug: var: userdata.stdout #To…