Questions tagged with Amazon EC2 Auto Scaling
Content language: English
Sort by most recent
hi Guys,
So, I was tasked with adding a schedule to the auto scaling group to run Monday-Friday, 8am to 5pm only. So my schedule look like this:
Apparently, the schedule is not working as it should and I can't find what is wrong. Can anyone identify what is wrong with this configuration. So the EC2 should only run between hours of 8am to 5pm MON-FRI.
Thank you.
I followed the instructions in https://docs.amazonaws.cn/en_us/autoscaling/ec2/userguide/predictive-scaling-customized-metric-specification.html to try to add predictive auto-scaling to the current deployment group in my running Blue/Green deployment system (I use the deployment mode where it copies the ASG at each deployment instead of swapping the same two in/out). I did NOT enable scale-from-forecast (yet).
When I run a CodePipeline release that then tries to run the blue/green deployment it fails on the "provisioning instances" (step 1) with "You must specify a PredictiveScalingConfiguration", which I'm pretty sure is what I've just done (I look at the ASG, and it has one, and is showing a forecast).
I have to delete the predictive scaling completely from the ASG in order to get it to work.
Any tips would be greatly appreciated.
I have an existing environment with a number of ec2 instances that are up and running 24/7. I am seeing additional transaction volumes which are starting to strain the existing environment at times. The transaction volumes are not constant but scattered at different days and times. I was looking to see if I could create a scaling group with just warm pools. I am looking at warm pools because of the pre-configured ec2 instances. Is it possible to have an autoscaling group with just a warm pool ? Can I have these spin up when the existing environment hits some threshold ?
Hi,
I've got a r5a.large instance, which is not in use. when I'm trying to terminate the instance, different instance is being launced automatically. I read that it might be connected to EC2 Auto-Scaling (https://repost.aws/questions/QUE3qVZUzERzeFOzwMMe44gQ/a-new-ec-2-instance-is-created-after-termination-of-the-only-instance), but nothing appears in my console when I'm trying to follow instructions (cannot delete ant auto-scaling group, because I don't have one) (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-process-shutdown.html).
please, help me terminate all EC2s.
Thanks,
Adi
AWS Technical Essentials (Japanese) Japanese live-action version
ID: E-04YMDV hands-on.
At the end of the content, the following error message was displayed in ELB + EC2 Auto Scaling hands-on.
An instance was taken out of service in response to an ELB system health check failure.
I have read the following articles in the user guide, but I have not been able to resolve the issue.
https://docs.aws.amazon.com/ja_jp/autoscaling/ec2/userguide/ts-as-healthchecks.html
I tried Solution 2 for the event "ELB system health check detects failure and instance service is stopped", but the problem could not be resolved.
I understand that I am proceeding according to the hands-on video, but I do not know how to troubleshoot, and I do not know the contents of the web application provided in the content, so I would like to contact you. rice field.
I'm sorry to trouble you, but I would appreciate it if you could tell me how to solve it.
Thank you.
Hi experts, We have a use case where we deploy application this way. We run code deploy on first node, once it finishes, code deploy has to run on rest of the nodes in parallel. Once remaining nodes complete, there should be a code which should run on the first node. all these are ec2 instances. Was wondering how to orchestrate it the best way and what options we have.
Hello,
I am building out a casino game that will not involve multiplayer online gameplay. Rather, it is a simple slots game with 6 different rooms. I anticipate having some users, perhaps optimistically around 1000 per month.
Eventually, I'd like to move into the multiplayer realm and incorporate poker/blackjack live games; however, for now, I'd like to stick to the slots game concept. How much data/ what service do you recommend for me? My programmer recommended between 4-8 GB RAM, 2-4 core CPU, and 165-240 GB SSD. What do you guys think?
Also, could anyone provide a step-by-step guide to how to set-up such a server with the recommended specs? Many thanks.
Hello Everyone,
Our AWS data transfer cost suddenly increases.
I check my current billing and found Bandwidth consumption is too high due to that this cost was increased
Is there any way, we can optimize this cost?

Hello Everyone,
What was the prefect way to sync data into Autoscaling groups ec2 instances..?
Hi! I have a doubt. I'm creating a wiki with MediaWiki software and I'm hosting it on AWS but my wiki is always going down and showing connection error:
ERR_CONNECTION_TIMED_OUT
I would like to know what will be the ideal configurations on the server to run the MediaWiki stably. I saw that my CPU is overloaded sometimes. I was using t3.micro instance. What AWS server requirements to run MediaWiki well would you recommend?
We are currently testing a scenario where we will run two Ec2 instances (Running custom application) at a time in autoscaling group. One will be hot and another will be warm ready to go. When the active server goes down due to application failure, the autoscaling will bring the warm one to the active state. While the active server is up and running we are taking snapshot of the attached EBS volume every hour. Is there a way when the active server goes down and the warm one comes up, it has the EBS volume attached and mounted to it with the latest snapshot?
I am aware of triggering a Lambda and have it attached an EBS volume to the instance but then I am not sure how will I mount it when the warm pool ec2 instance is in autoscaling:EC2_INSTANCE_LAUNCHING state?
The application will be running on RHEL8 AMI. Any guidance, suggestion are appreciated. Thanks
When creating EKS cluster I attached a role to EKS which was required. The role I created using official [documentation](https://docs.aws.amazon.com/eks/latest/userguide/service_IAM_role.html#create-service-role). To that role only AmazonEKSClusterPolicy policy is attached through which I guess creating EC2 Auto Scaling Group(action: CreateAutoScalingGroup) is not allowed, but still EKS is able to create EC2 Auto Scaling Group when I create Node Group.
Question: So how EKS is able to create an EC2 Auto Scaling Group if the role doesn't allow it?
JSON settings of AmazonEKSClusterPolicy policy:
```
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"autoscaling:DescribeAutoScalingGroups",
"autoscaling:UpdateAutoScalingGroup",
"ec2:AttachVolume",
"ec2:AuthorizeSecurityGroupIngress",
"ec2:CreateRoute",
"ec2:CreateSecurityGroup",
"ec2:CreateTags",
"ec2:CreateVolume",
"ec2:DeleteRoute",
"ec2:DeleteSecurityGroup",
"ec2:DeleteVolume",
"ec2:DescribeInstances",
"ec2:DescribeRouteTables",
"ec2:DescribeSecurityGroups",
"ec2:DescribeSubnets",
"ec2:DescribeVolumes",
"ec2:DescribeVolumesModifications",
"ec2:DescribeVpcs",
"ec2:DescribeDhcpOptions",
"ec2:DescribeNetworkInterfaces",
"ec2:DetachVolume",
"ec2:ModifyInstanceAttribute",
"ec2:ModifyVolume",
"ec2:RevokeSecurityGroupIngress",
"ec2:DescribeAccountAttributes",
"ec2:DescribeAddresses",
"ec2:DescribeInternetGateways",
"elasticloadbalancing:AddTags",
"elasticloadbalancing:ApplySecurityGroupsToLoadBalancer",
"elasticloadbalancing:AttachLoadBalancerToSubnets",
"elasticloadbalancing:ConfigureHealthCheck",
"elasticloadbalancing:CreateListener",
"elasticloadbalancing:CreateLoadBalancer",
"elasticloadbalancing:CreateLoadBalancerListeners",
"elasticloadbalancing:CreateLoadBalancerPolicy",
"elasticloadbalancing:CreateTargetGroup",
"elasticloadbalancing:DeleteListener",
"elasticloadbalancing:DeleteLoadBalancer",
"elasticloadbalancing:DeleteLoadBalancerListeners",
"elasticloadbalancing:DeleteTargetGroup",
"elasticloadbalancing:DeregisterInstancesFromLoadBalancer",
"elasticloadbalancing:DeregisterTargets",
"elasticloadbalancing:DescribeListeners",
"elasticloadbalancing:DescribeLoadBalancerAttributes",
"elasticloadbalancing:DescribeLoadBalancerPolicies",
"elasticloadbalancing:DescribeLoadBalancers",
"elasticloadbalancing:DescribeTargetGroupAttributes",
"elasticloadbalancing:DescribeTargetGroups",
"elasticloadbalancing:DescribeTargetHealth",
"elasticloadbalancing:DetachLoadBalancerFromSubnets",
"elasticloadbalancing:ModifyListener",
"elasticloadbalancing:ModifyLoadBalancerAttributes",
"elasticloadbalancing:ModifyTargetGroup",
"elasticloadbalancing:ModifyTargetGroupAttributes",
"elasticloadbalancing:RegisterInstancesWithLoadBalancer",
"elasticloadbalancing:RegisterTargets",
"elasticloadbalancing:SetLoadBalancerPoliciesForBackendServer",
"elasticloadbalancing:SetLoadBalancerPoliciesOfListener",
"kms:DescribeKey"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "iam:CreateServiceLinkedRole",
"Resource": "*",
"Condition": {
"StringEquals": {
"iam:AWSServiceName": "elasticloadbalancing.amazonaws.com"
}
}
}
]
}
```