Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Hi I am trying to bootstrap an ubuntu ec2 instance using knife command line tool, but when ever I run this command

knife ec2 server create -x ubuntu --region ap-southeast-1  -i ami-0cdf4965 -S key  --identity-file  ~/key.pem  -G default  -r 'recipe[apt],recipe[apache2],recipe[ntp],recipe[ruby]'

I knife throws out an error

ERROR: You did not provide a valid 'Image' value

and when ever I use -I ami-id it tell use -i instead of -I, but I can bootstrap an instance in us-east region but unable to do it in the ap-southeast region.

Kindly help me out

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Are you trying to use the same AMI in ap-southeast as us-east? The machine definitions are only valid for the region in which they were created.

I googled the AMI referenced in the ticket and it's a Ubuntu Quantal release. Use the Ubuntu Amazon EC2 AMI Locator to track down an appropriate AMI and try that out.

share|improve this answer
    
I am using the different ami id which is available in ap-southeast-1 region but still I am getting the same error –  Jeevan Dongre Mar 5 '13 at 9:32
    
Just now I used this ami id ami-7881cc2a but still getting the same error. Here is the command I ran knife ec2 server create -x ubuntu --region ap-southeast-1 -image ami-7881cc2a --identity-file /home/user/key.pem --ebs-size 8 -G default -r 'recipe[apt],recipe[apache2],recipe[ntp],recipe[ruby]' –  Jeevan Dongre Mar 5 '13 at 9:34
    
Did you use -image or --image? The error is coming from knife and not Amazon. –  Tim Potter Mar 5 '13 at 10:05
    
Now I am getting different issue which says key doesn't exists... I am trying to fix since a very long time, I am facing this issue only is ap-southeast-1 region when I try to create a node in US its working fine. Can you help me please???? @Tim Potter –  Jeevan Dongre Mar 5 '13 at 10:33
    
You most likely need to create a new key for the ap region as key pairs, like AMIs, are not shared across regions. –  Tim Potter Mar 5 '13 at 13:21
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.