How Do You Troubleshoot the Error “VpcLimitExceeded” When Running an Ansible Playbook in AWS?

Problem scenario
You are running an Ansible playbook in AWS, and you get this message:

TASK [metron-test:  Create virtual private cloud] ******************************
fatal: [localhost]: FAILED! => {“changed”: false, “failed”: true, “msg”: “VpcLimitExceeded: The maximum number of VPCs has been reached.”}
        to retry, use: –limit @/usr/bin/metron/metron-deployment/amazon-ec2/playbook.retry

Solution
You must have an AWS account with a special maximum of VPCs.

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

Problem scenario
You want to deploy a stack (a collection of infrastructure or application resources) with the AWS CLI. You want to create a server with CloudFormation and the AWS CLI. How do you do this?

Solution
Here is a simple example to answer the question.  This requires that you have AWS CLI installed and configured. If you need help with that, here are 

How Do You Install an Older Version of Ansible on an AWS Instance of Red Hat Linux?

Problem scenario
You are using Red Hat Enterprise Linux in AWS.  You need to install an older version of Ansible — not the newest.  The pip command and other supported ways of deploying Ansible automatically use the newest version.  You also want to install Maven. 

Solution
Run this script with “sudo”. (You could run it as root, but that is not recommended.)  The server must be in a Security Group with access to the internet.

A List of Azure Books

15 minute Azure Installation: Set up the Microsoft Cloud Server by the Numbers by Barrett Leibe
A Guide to Claims-Based Identity and Access Control: Authentication and Authorization for Services and the Web (Microsoft patterns & practices) by Dominick Baier, Vittorio Bertocci, Keith Brown, Scott Densmore, Eugenio Pace and Matias Woloski
Automating Microsoft Azure Infrastructure Services: From the Data Center to the Cloud with PowerShell by Michael Washam
Automating Microsoft Azure with Powershell by Aman Dhally and John Chapman
Azure in Action by Chris Hay and Brian Prince
Azure Mobile and Cloud Development in C# by Joe Ficara
Building Clouds with Windows Azure Pack by Amit Malik
Building Hybrid Applications in the Cloud on Windows Azure (Microsoft patterns &

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

Problem scenario
You are using a RHEL (RedHat Enterprise Linux) server in AWS.  You want to install Vagrant. What do you do?

Solution
Assume the root user by issuing this command: sudo su –
Run these commands:
yum -y install wget
cd /tmp
wget https://releases.hashicorp.com/vagrant/1.8.1/vagrant_1.8.1_x86_64.rpm 
yum -y localinstall vagrant_1.8.1_x86_64.rpm

To verify the installation, run this command: vagrant version

Alternative Solution
If you do not want to install wget and curl commands will work for retrieving https locations,

A List of Amazon Web Services (AWS) Books

AWS skills are becoming increasingly important as of November 2020.

2015 AWS Cloud Dictionary & Handbook: Reccomnded for Associate Architect and Solution AWS Certifications. by Tony M’aash
Amazon Cloud Computing With C#/.Net (Amazon Cloud Computing With ‘X’) by Aditya Yadav
Amazon EC2 Container Service The Ultimate Step-By-Step Guide by 5STARCooks
Amazon EC2 Linux AMI Quick Setup Guide: Get LAMP (Linux, Apache,

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

Problem scenario
You are using RedHat Enterprise Linux 7.x or 8.x in AWS.  How do you install Maven?

Solution
Prerequisite
Make sure Java has been installed. See this link if you need assistance.

Procedures
1.  Create a file named maven.sh with this as the content:

version=3.6.2
curl http://ftp.wayne.edu/apache/maven/maven-3/$version/binaries/apache-maven-$version-bin.tar.gz /bin/apache-maven-$version-bin.tar.gz

md=$(md5sum /bin/apache-maven-$version-bin.tar.gz | awk ‘{print $1}’)
if [ $md -ne ’35c39251d2af99b6624d40d801f6ff02′ ]
then
echo “Installation of Maven has failed. …

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

Problem scenario
You are using RedHat Enterprise Linux 7.x in AWS.  How do you install Java?

Possible Solution #1
Use this posting as it is preferred. Below is an alternative.

Possible Solution #2
This will install Java 1.8.x.

1. Create a file named java.sh with this as the content:

yum -y install java-1.8.0-openjdk*
JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk
echo ‘export JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk’ ~/.bashrc
source ~/.bashrc
sudo -s
sudo -s source /etc/environment

2.  

How Do You Install and Configure the NRPE Agent (to Have Nagios Monitor) on a RHEL Server in AWS?

Problem scenario
You have Nagios core installed on a server in AWS.  You want a new AWS RedHat Enterprise Linux server to have the NRPE agent.  You want thorough directions for this process to potentially automate it.  How do you install and configure the NRPE agent on a RHEL server and configure a Nagios core server to monitor it?

Solution
Prerequisites

  1. You need to know the internal IP address of 1) the Nagios core server;

How Do You Install Nagios on RedHat Linux Step-By-Step?

Problem scenario
You have a small AWS server (e.g., t2.micro with 1 GB of RAM) running RedHat Enterprise Linux.  How do you install Nagios on it?  You want thorough directions to install and configure the Nagios monitoring server on RHEL.

Solution
As root or a sudoer user, run a script with the following content:

# Written by continualintegration.com
​# This script installs Nagios.