Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Auto-scaling with a custom, private AMI

I'm trying to set up an auto scaling profile to scale my own cloud automatically. I have created a private AMI image which I'd like to use as the image launched when creating new servers in this configuration. I'm using the auto-scaling command-line controls to create the profile and I can't seem to get it working:

$ 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've verified that the AMI id that I'm using does, in fact, exist in my EC2/Images/AMIs part of the EC2 console. What am I doing wrong here? I need to have the images be private due to the company's privacy requirements, but I do need to set up auto-scaling to get things going for them.

like image 580
Naftuli Kay Avatar asked Dec 16 '22 19:12

Naftuli Kay


1 Answers

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

like image 178
Eric Hammond Avatar answered Jan 18 '23 23:01

Eric Hammond