Troubleshooting EC2

Troubleshooting EC2 Connectivity Issues

Learning AWS can be a very long and daunting experience. There are dozens of primary services, each with hundreds of features to learn. However, very few things can be more frustrating than having connectivity issue when trying to access a provisioned AWS resource, like an EC2 instance.  After all, you just spent hours learning about AMIs, instance types, IP addresses, user-data, storage volumes, security groups, and key pairs.  Now you just want to actually access the damn instance and have some fun with it. But as you try to access the instance, whether by SSH or HTTP, you get one of these dreaded errors: “access denied,” or “operation timed out,” or some other variation.  Regardless of the error – you can’t log-in.


Ok, so you vent a little bit – perhaps even yell at your computer.  Regardless of your frustration, you still need to figure out what is wrong.  With that in mind, I present some of the common (perhaps even simple) issues that cause many connectivity issues. (more…)

New Year, New Courses!

With the New Year comes new courses from Linux Academy! Five new AWS courses are now available for all Linux Academy students. Extend your professional knowledge of Amazon Web Services with Ansible and Amazon Web Services, Advanced AWS Security, Lambda Deep Dive, Using the EC2 Container Service, and Docker and Elastic Beanstalk.
Fresh from our Ansible course and curious how to integrate the popular DevOps tool into an AWS infrastructure? Look no further, Instructor Terry provides an in-depth look at how Ansible and AWS can integrate. The course covers basics such as installing Ansible on various Linux distros, creating and managing your environment, AWS resources and modules for Ansible and use cases wherein you can practice creating and optimizing your Ansible Playbooks.
Learn how to protect your AWS infrastructure in Advanced AWS Security. Starting with an overview of the Shared Responsibility Model, this course goes into how to protect your data through a variety of points. Includes information on managing access to EC2 instances and resources, securing data at rest and in transit, network security, key pair usage, security groups, VPC security, flow logs, network ACLs, WAFs, and an IDS and IPS overview. Walk away from this course secure in your knowledge that you can secure a system.
The first course from our newest instructor, Christophe (creator of Scale Your Code) will provide in-depth information regarding AWS Lambda, which allows users to run code without provisioning or managing servers. This course covers Lambda fundamentals, Node.js, and Python Lambda functions, testing Lambda functions, and using Lambda functions in the CLI, with more content to be released!
Discover how to manage a cluster of Amazon EC2 instances with AWS’s EC2 Container Service. Learn about containers, container architecture, user and group setup, security, cluster creation, Docker integration, scaling, troubleshooting, performance metrics, and other skills to keep your clusters highly-available and performing at peak.
In another combo of DevOps and AWS, the Docker and Elastic Beanstalk course will teach students how to set up and configure the container solution Docker on Elastic Beanstalk, Amazon Web Services’ solution to deploying and scaling web applications. The course contains introductions to both Docker and Elastic Beanstalk, Docker set up, Elastic Beanstalk set up and CLI configuration, and use case examples where you will use the wizard to set up your “app,” learn the environment, review Elastic Beanstalk command line basics, and more.

Installing Drupal And Linux LAMP Stack On Ubuntu Amazon EC2

In this screencast we are going to start from the very beginning and create our own EC2 cloud hosted Drupal installation. This will allow us to have full control of our Linux server and Drupal installation. We will walk through the process of setting up an Amazon EC2 instance, download and install Apache2, MySQL, PHP5, and phpmyadmin. Using these tools, we can create a Drupal database and host a Drupal website. Finally, we will download and install Drupal to our web server, create a Drupal database, configure the Apache site directory and install our Drupal website. At the end of the screencast we will have a running server and working Drupal website.


Changing The Time Zone In Linux (Command Line)

There are several different ways to manage time in Linux. This quick tip will show you how to quickly change the local time to the correct time zone for the server. In this Linux tip I’ll show you how to change the localtime to your (or a) current time zone.

Location of the local time file
Linux looks at /etc/localtime to determine the current time of your machine. This can either be a symbolic link to the correct time zone or a direct copy of the time zone file.

How to Backup Linux to Amazon S3 Using s3cmd

S3cmd is a program that allows you to backup your Linux box to Amazon S3. Amazon S3 allows you basically unlimited storage and, as long as you have the bandwidth, you can use it from any location. There are two options in a backup that you can use: you can either copy all the files over to an S3 bucket (called put) or you can use the sync command to sync file changes on a regular basis.