How Do You Install PostgreSQL on an EC2 SUSE (AWS Instance of Linux SUSE)?

Problem scenario
You want to install Postgres on Linux SUSE.   This AWS server is in a security group with the ability to get to the Internet.  How do you install PostgreSQL on it?

Solution
1.  Log into the SUSE server with the default ec2-user.  The default user for AWS SUSE instances used to be root.  But now it is ec2-user.

2.  Run these five commands (taken from 

How Do You Deploy a Stack (a Collection of Infrastructure Resources) with AWS CloudFormation Using the Console?

Problem scenario
You want to use CloudFormation in AWS.  You want to create a server or multiple servers with CloudFormation. How do you use CloudFormation with no CLI to create a stack (a collection of infrastructure or application resources) in AWS?

Solution
Here is a simple example to answer the question.

1.  Go to https://console.aws.amazon.com/cloudformation/home
2.  Click “Create new stack” button
3.  

How Do You Set up (Install and Configure) AWS CloudWatch?

Update 11/22/17

Problem scenario
You want to use CloudWatch.  What steps do you need to take initially to have it work on a Linux server?

Solution
Prerequisites
Prerequisite #1  The server must be an EC-2 instance (not a non-AWS server) with AWS CLI installed (but not necessarily configured).  For directions on installing AWS CLI, see this link.

How Do You Install Docker on an AWS Instance of RHEL?

UPDATE: If you are using RHEL 8.x use these directions instead of the ones below.

Problem scenario
You want to install Docker on an AWS instance of RedHat Linux (version 7.x or below).  You do not want to use CentOS packages.  What do you do?

Solution
For RedHat Linux running via AWS, you have to run one command to enable numerous yum repositories. 

How Do You Configure Updates for a RedHat Server Running on AWS?

Question:  How Do You Get Yum Repositories to Work with a AWS Instance of RHEL?
Problem scenario:   You are using RedHat Linux via AWS and very few yum commands work.  The repositories are very limited, and few packages are available.  When trying to use yum to install packages, you see output like this:

“Loaded plugins: amazon-id, rhui-lb

No package lynx available.

How Do You Install Kubernetes on an AWS Instance of RedHat Linux?

Problem scenario:  You are using RHEL 7.x via AWS.  You want to install Kubernetes.  What do you do?

Solution
1.  Log into the Linux server as ec2-user.  Then run this command:
sudo yum-config-manager –enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional

2.  Create this file: /etc/yum.repos.d/kubernetes.repo
3.  Have this be the content of the file (with the first line being “[kubernetes]” and the last line ending in “…

How Do You Deploy a Kubernetes Cluster in AWS Using an Ubuntu Linux Instance?

Updated on 10/13/20.

Problem scenario
You want to deploy a Kubernetes cluster in AWS.  You have an Ubuntu server (e.g., with a nano flavor in AWS or a minimally powered Azure instance).  It has no software packages installed on it (e.g., it does not have Docker or Kubernetes).  How do you deploy Kubernetes in AWS?

Solution
Warning:  This will automatically create EC2 servers in you AWS account behind the scenes. 

Infrastructure as Code and Architecting Server Environments for Automatic Replication

Infrastructure as Code is often associated with “Continuous Configuration Automation.”  We think the term should be “Continual Configuration Automation.”

There are four popular tools to rapidly provision cloud infrastructure using templates: Azure Resource Manager, CloudFormation, Terraform, and Heat.  Three of these tools each support two different types of template files for provisioning servers.

Two AWS Servers Cannot Ping Each Other. What Is Wrong?

Problem scenario:  You have two AWS instances in the same security group.  The Security Group has rules for “All TCP” associated with both the public IP address (visible in the EC2 portion of the AWS Console) and the private IP address (found when you issue an “ifconfig” at the OS level of the server).  You find that the servers cannot ping each other.  You cannot SSH from one to the other either.

Connection Refused Error When Trying to Configure Chef Server on RedHat

Problem scenario:  You are trying to set up a Chef Client on a VM to be configured to communicate with your Chef Server (version 12). The OS of both servers (the Chef server and the server that will be the Chef client) is RHEL 7.3.

You run this command from a server that you want to be a Chef client:

knife client list

You get this: