How Do You Determine the URL for the AWS Web Console for a Non-root User?

Problem scenario
You created an AWS Console user (e.g., an IAM user).  You want to log into the web UI with the user.  You have the username and password.  What is the URL for the AWS web console for a non-root user?

Solution
1.  Log into the web UI.
2.  Go here: https://console.aws.amazon.com/iam/home?
3.  Go to Users on the left.  

How Do You SSH to a GCP server?

Problem scenario
You cannot SSH into a Linux Google Cloud Platform server.  How do you create new GCP servers that you can SSH into?

Solution
Summary
Use the “Startup script” in Google Cloud Platform.  This script comes with precautions.  Be careful when pasting it.  The lines can potentially not wrap properly.  Carriage returns could be introduced to make this script fail.  Be very careful because this script creates a user with sudoer privileges. 

How Do You Delete Servers in AWS with Python?

Problem scenario
You want to write a Python program to delete servers.  How do you delete EC-2 instances in AWS with Python?

Solution
Prerequisites

a.  You have installed Boto3.  If you do not know how, see this posting
b.  You know the instance IDs.  If you do not know them, see this posting.

Procedures
Read the “Usage instructions” of this Python program we call “deleteec2.py”.

How Do You Configure an Amazon VPC?

Problem scenario
You want to use a VPC in AWS.  What do you do to create one?

Solution
1.  Log into the AWS web console.
2.  Go here: https://aws.amazon.com/vpc/
3.  Click “Get started with Amazon VPC”.
4.  Click “Launch VPC Wizard”.
5.  Click “Select”.
6.  Change configurations as desired.  At a minimum click the “Availability Zone” to choose the region that is most appropriate for your needs (i.e.,

How Do You Troubleshoot the kubectl Message “Connection error: Unable to connect to the server:” with AWS?

Problem scenario
You are using Kubernetes in AWS.  When using a kubectl command you get this error: “Connection error: Unable to connect to the server:  getting credentials: exec: exit status 1  … Could not get token: AccessDenied: Access denied”

What should you do?

Possible Solution #1
Was the user who created the Kubernetes cluster a different user from the user that is configured with your AWS CLI?

What Are ARM Templates (for Azure)?

Question
What are ARM (Azure Resource Manager) templates?

Answer
ARM templates are JSON files that have six element definitions, of which three are mandatory:

$schema
contentVersion
parameters
variables
resources
outputs

The elements $schema, contentversion, and resources are mandatory.

For more information see these links:
https://medium.com/@zaab_it/azure-resource-manager-template-101-1ccddc797f65

How Do You Use Amazon Elastic Kubernetes Service with the CLI?

Problem scenario
You want to deploy Kubernetes to AWS.  How do you use Amazon EKS to create a cluster with the AWS CLI?

Solution
Prerequisites

i.  This assumes that your AWS CLI has been installed.  If you need assistance with this, see this posting.
ii.  This assumes that you have a role created.  If you need assistance with this, see this posting.

How Do You Create an AWS User with Web Console Access to View EKS Clusters in the AWS Console?

One of the following problem scenarios apply.

Problem scenario #1
You want an AWS user to be able to log into the web console and view EKS clusters.  How do you do this?

OR

Problem scenario #2
You are using AWS and when you log into the AWS Console via a web browser with a user who is a member of a Group with two EKS policies,

How Do You Use Amazon Elastic Kubernetes Service with the Web UI?

Problem scenario
You want to deploy a Kubernetes cluster in AWS.  How do you use Amazon EKS with the web UI?

Solution
Prerequisites

i.  Optional:  It is recommended to create a separate VPC for each cluster (according to Amazon’s documentation here).  If you need to create a VPC, see this posting.

ii.  You need a Linux server with kubectl installed on it. 

How Do You Troubleshoot the AWS CLI Error “Traceback … import pkg_resources”?

Problem scenario
You run an “aws” command but you receive an error message such as this:

Traceback (most recent call last):
  File “/usr/bin/aws”, line 4, in <module>
    import pkg_resources
  File “/usr/lib/python2.7/site-packages/pkg_resources.py”, line 3007, in <module>

What should you do?

Solution
1.  Install pip.  If you need assistance, see this posting (especially the “Problem scenario” paragraph with hyperlinks based on distribution families of Linux).