SSH to Elastic Beanstalk instance

I found it to be a 2-step process. This assumes that you’ve already set up a keypair to access EC2 instances in the relevant region. Configure Security Group In the AWS console, open the EC2 tab. Select the relevant region and click on Security Group. You should have an elasticbeanstalk-default security group if you have … Read more

Permission denied (publickey) when SSH Access to Amazon EC2 instance [closed]

This error message means you failed to authenticate. These are common reasons that can cause that: Trying to connect with the wrong key. Are you sure this instance is using this keypair? Trying to connect with the wrong username. ubuntu is the username for the ubuntu based AWS distribution, but on some others it’s ec2-user … Read more

Connect to Amazon EC2 file directory using Filezilla and SFTP

I’ve created a video tutorial for this. Just check: Connect to Amazon EC2 file directory using FileZilla and SFTP, Video Tutorial Summary of above video tutorial: Edit (Preferences) > Settings > Connection > SFTP, Click “Add key file” Browse to the location of your .pem file and select it. A message box will appear asking … Read more

Benefits of EBS vs. instance-store (and vice-versa) [closed]

The bottom line is you should almost always use EBS backed instances. Here’s why EBS backed instances can be set so that they cannot be (accidentally) terminated through the API. EBS backed instances can be stopped when you’re not using them and resumed when you need them again (like pausing a Virtual PC), at least … Read more

Difference between Amazon EC2 and AWS Elastic Beanstalk [closed]

First off, EC2 and Elastic Compute Cloud are the same thing. Next, AWS encompasses the range of Web Services that includes EC2 and Elastic Beanstalk. It also includes many others such as S3, RDS, DynamoDB, and all the others. EC2 EC2 is Amazon’s service that allows you to create a server (AWS calls these instances) … Read more

How to get the instance id from within an ec2 instance?

See the EC2 documentation on the subject. Run: wget -q -O – http://169.254.169.254/latest/meta-data/instance-id If you need programmatic access to the instance ID from within a script, die() { status=$1; shift; echo “FATAL: $*”; exit $status; } EC2_INSTANCE_ID=”`wget -q -O – http://169.254.169.254/latest/meta-data/instance-id || die \”wget instance-id has failed: $?\”`” Here is an example of a more … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)