Auto-scaling with dedicated, private AMI

I am trying to set up an auto-scale profile to automatically scale my own cloud. I created a private AMI image that I would like to use as the image that is launched when new servers are created in this configuration. I use autoscaling command line elements to create a profile, and I cannot get it to work:

$ as-create-launch-config MyServerConfig --image-id "ami-12345678" --instance-type m2.4xlarge --monitoring-disabled as-create-launch-config: Malformed input-AMI ami-12345678 is invalid: The AMI ID 'ami-12345678' does not exist 

I have confirmed that the AMI I am using does indeed exist in my part of the EC2 / Images / AMI EC2 console. What am I doing wrong here? I need the images to be private due to company privacy requirements, but I need to set up auto-scaling to achieve something for them.

+4
source share
2 answers

Make sure that your AMI group and AutoScaling are in the same region and that you specify the region correctly on the command line.

+10
source

This may be due to the wrong region. by default it looks at us - east-1. You can specify the region as shown below:

as-create-launch-config your_autoscale_config --region us-west-2 --image-id "your_image_id" - state type m1.small

For a list of region names, go to this URL.

http://docs.aws.amazon.com/general/latest/gr/rande.html#as_region

+2
source

Source: https://habr.com/ru/post/1436250/


All Articles