How Do You Set up an FTP Server on an RHEL Server Running in AWS?

Problem scenario
You want to use a Red Hat Enterprise Linux server to be an FTP server.  You have a RHEL instance in AWS.  How do you configure this server to serve as an FTP server?

Solution
1.  Run this command: sudo yum -y install vsftpd

2.  Run the commands below but replace contint with the username of your choice.  You will need to respond to a password prompt too.

How Do You Connect to an Amazon RDS Instance?

Problem scenario
You created an Amazon RDS instance that uses PostgreSQL.  How do you connect to it without using the AWS CLI or AWS API from a Windows workstation?

Solution

Prerequisites

  • Install HeidiSQL on your Windows machine.  (Toad or other SQL front-end applications can work too.)
  • You need a username and password for the PostgreSQL instance. 

How Do You Create an Amazon RDS Database Instance?

Problem scenario
You want to test out an Amazon RDS database instance.  (You want to use a database PaaS offering and VPC as opposed to EC-2.)  What do you do?

Solution
1.  Log into the AWS console.  
2.  Click “Launch a DB instance”
3.  Choose the database engine you want (e.g., PostgreSQL). Click “Next”.
4.  Click the option for “Dev/Test” and click “Next”.

What is Amazon VPC?

Question
What is Amazon VPC?

Answer
VPC stands for Virtual Private Cloud.  For a typical VM in AWS, there are restrictions on IP address assignments.  VPC allows you to configure servers and network access points without restrictions.  It allows you to leverage AWS with your own network in a separate data center.  It is ideal for hybrid clouds or situations where you need full control of networking without the constraints of typical AWS deployments.

How Do You Troubleshoot the Error “ERROR: S3 error: 400 (InvalidRequest): The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.”

Problem scenario
Some s3cmd commands work fine.  But others give you this error:
“ERROR: S3 error: 400 (InvalidRequest): The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.”

What can you do to get s3cmd commands to work consistently?

Solution
Upgrade your s3cmd to a newer version.

How Do You Troubleshoot the I.E. Error “Your current security settings do not allow this file to be downloaded”?

Problem scenario
On a Windows server in AWS, you are trying to download a file with Internet Explorer.  You get this error: “Your current security settings do not allow this file to be downloaded.” How do you solve this problem?

Solution
Using Internet Explorer 11, go to Internet Options.  Go to the Security tab.  Click on “Internet.”  Scroll down to “Downloads.”  For “File download” (beneath “Downloads”),

How Do You Delete an AWS Security Group When You Get a Message about It Being Attached to a Network Interface?

Problem scenario
Recently you deployed Kubernetes to AWS using JuJu.  You are now eliminating the Security Groups that it created. You cannot delete a Security Group in AWS.  You get an error about the Security Group being associated with one or more network interfaces.   You cannot detach the network interface.  You even click the “Force detachment” and then click “Yes, Detach.”  Nothing works to delete the network interface or remove the Security Group.

How Do You Troubleshoot an s3cmd Error About “.s3cfg: None”?

Problem scenario
You are trying to run an s3cmd command (e.g., s3cmd ls), but it is not working.  You run an s3cmd command and you get this:

ERROR: /home/jdoe/.s3cfg: None
ERROR: Configuration file not available.
ERROR: Consider using –configure parameter to create one.

What do you do?

Possible Solution #1
1.  sudo find / -name .s3cfg
2. 

How Do You Change a User’s Password When You Cannot Log into Your Azure Linux VM?

Problem scenario
You have a Linux VM in Azure but you cannot log in.  You cannot remember a single password for the username you were using.  What do you do when you forgot all the credentials of a Linux VM except one username?  How can you log into this server?

Solution
Prerequisite
To reset access to the VM in the following way,

How Do You Get Jenkins to Push Files to Other Servers in AWS?

Problem scenario
You have Jenkins set up on Linux.  You want it to deploy files to other Linux servers, how do you do this as a proof of concept?

Solution
There are many different ways of accomplishing this task.  These directions do not cover the production-recommended best practices associated with security.  For such a solution, you may want to see this external site