Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm following the Amazon AWS tutorial and I have reached Step 6: Launch Amazon EC2 Instances Using Auto Scaling

But when I run the launch command:

as-create-launch-config MyLC --image-id ami-7813e011 --instance-type t1.micro --group webappsecuritygroup --key mykeypair.pem

I get the following error:

 Cannot redirect to service provided destination - try using AWS keys for
 authentication (instead of X509/Private key) or check destination URL

What have I done wrong? I created the key as stated in the management console.

Thank you!

share|improve this question
up vote 0 down vote accepted

Ok I removed:


and added:

export EC2_REGION=eu-west-1

in .profile and it worked like a charm!

share|improve this answer

Your Answer


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.