Cannot ping AWS EC2 instance
Add a new EC2 security group inbound rule: Type: Custom ICMP rule Protocol: Echo Request Port: N/A Source: your choice (I would select Anywhere to be able to ping from any machine)
Add a new EC2 security group inbound rule: Type: Custom ICMP rule Protocol: Echo Request Port: N/A Source: your choice (I would select Anywhere to be able to ping from any machine)
A fix for this problem is to add swap (i.e. paging) space to the instance. Paging works by creating an area on your hard drive and using it for extra memory, this memory is much slower than normal memory however much more of it is available. To add this extra space to your instance you … Read more
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
I had the same problem an solved it. Have a look at the step-by-step instructions: Go to console.aws.amazon.com Go To Services -> VPC Open Your VPCs select your VPC connected to your EC2 and select Actions => Edit DNS Hostnames —> Change DNS hostnames: to YES
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
Using AWS Management Console: Right-Click on the instance Instance Lifecycle > Stop Wait… Instance Management > Change Instance Type
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
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
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
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