AWS CLI: 10 Useful Commands You May Not Know

The AWS CLI should be your best friend The AWS console is certainly very well laid out and, with time, becomes very easy to use. However if you are not using the AWS CLI (Command Line Interface) from your local terminal, you may be missing out on whole lot of great functionality and speed. If you … Read more

Connecting to Amazon EC2 Instance on Windows 10 bash – Permission denied (publickey)

I am trying to connect to my Amazon EC2 Instance using bash on Windows 10. I have already downloaded MyKey.pem It show me this message @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0555 for ‘MyKey.pem’ are too open. It is required that your private key files are NOT accessible by others. This … Read more

Migrating to Amazon Linux 2

I run all my EC2 workloads on Amazon Linux. It comes with a superb AWS integration, a secure default configuration, regular security updates, and I can open AWS Support tickets if I run into any problems. In late December 2017, AWS announced the successor of Amazon Linux: Amazon Linux 2. AWS also announced that Amazon Linux 2018.03 … Read more

Tutorial: Install a LAMP Web Server on Amazon Linux 2

The following procedures help you install an Apache web server with PHP and MariaDB (a community-developed fork of MySQL) support on your Amazon Linux 2 instance (sometimes called a LAMP web server or LAMP stack). You can use this server to host a static website or deploy a dynamic PHP application that reads and writes information to … Read more


STEPS TO SET JAVA ENVIROMENT VARIABLE ON EC2 IN 4 SIMPLE STEPS. First, check the version of JDK Step 1: Ensure you have right version of JAVA installed or upgrade if necessary (Optional) The latest version of JAVA is 1.8, by default Amazon Linux has JAVA version 1.7 so you would directly want to upgrade it use command below … Read more

I can’t SSH to instance started in new subnet/zone

I have an AMI and security group that I’ve been starting instances from, using our VPC and a subnet we’ve had defined, for a long time. Once such instances start, I’m able to SSH to them.So far so good.Lately we started getting error messages about Amazon not having enough capacity in our zone, so I … Read more

AWS: Alternate Sign In for Two-Step Verification

Some Amazon devices and apps won’t display a separate page for you to enter your unique security code for Two-Step Verification. You will still need to enter the security code in addition to your password. Two-Step Verification is a feature that adds an extra layer of security by asking you to enter a unique security code … Read more

Boto Config

Introduction There is a growing list of configuration options for the boto library. Many of these options can be passed into the constructors for top-level objects such as connections. Some options, such as credentials, can also be read from environment variables (e.g. AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY). But there is no central place to manage these options. So, the development … Read more