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.

I'm following the Amazon AWS tutorial and I have reached Step 6: Launch Amazon EC2 Instances Using Auto Scaling http://docs.amazonwebservices.com/gettingstarted/latest/wah-linux/

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

1 Answer 1

up vote 0 down vote accepted

Ok I removed:

export AWS_AUTO_SCALING_URL=https://autoscaling.eu-west-1.amazonaws.com

and added:

export EC2_REGION=eu-west-1

in .profile and it worked like a charm!

share|improve this answer

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.