AWS ELB

In this post we’re going to make our currently implemented web server a bit more fault tolerant and highly available using AWS Elastic Load Balancing. Hopefully, you’ve been following along with my previous posts on IAM Permissions, AWS VPC, and AWS EC2 because we are going to build off of the resources created in those posts. In the last post we created a couple of EC2 nginx web server instances that were routable via their public IPs.…

Read more »

AWS EC2

In this post we’re going to walk through setting an AWS EC2 (elastic compute cloud) instance. During the course of this post we’ll talk through some of the different options available and why they’re important. Up until now we’ve been going over what some may consider boring. IAM Permissions and VPC Networking are not necessarily at the top of everyone’s list of things they have queued up to learn. Well I have good news, we’re going to have a pair of web servers running in EC2 by the time you finish reading this post.…

Read more »

AWS VPC

In this post we’re going to dissect the make up of an AWS Virtual Private Cloud. VPC’s make up the networking component of Amazon Web Services. They’re composed of several distinct pieces, we’ll go over each one independently and talk about their purpose and some of the ins and outs of them. VPC Subnets Internet Gateway Route Tables Network Access Control Lists Security Groups Virtual Private Gatway VPC Endpoints VPC VPCs are the heart of AWS networking.…

Read more »

AWS Identity & Access Management

What is IAM? IAM is AWS’ way of tracking permissions across all the resources assiciated with a given AWS cloud subscription. IAM controls access at the user, group or role level - and also handles federation to give temporary permission to external users. Inside IAM you are able to customize the login URL for the specific AWS account. You can configure console password policies, enforce MFA across all accounts.…

Read more »

Vowels

This exercise will be a walk in the park. We need to do a case insensitive count of vowel characters in a given string. In this exercise we’ll try to use map(), filter(), and reduce(). This is going to be a fun one. Starting like we always do, go to our exercises/ directory and create our new directory, vowels/ and create two files index.js and test.js. We’ll add some prebaked tests into the test.…

Read more »

Pyramid

Building on our last exercise this time we’re going to be building a pyramid. Given a positive number print that number of lines printing out a pyramid shape: pyramid(3) => ‘ # ’ ‘ ### ’ ‘#####’ You should be able to see the similarities in the output - but the program will have to do a little more work to figure out if it needs to print a space or hashtag.…

Read more »

Steps

Ok, next up on our list of exercises is going to be to create a steps(n) function. This function will print out to the console a number of log statements like so: steps(3) => ‘# ’ ‘## ’ ‘###’ Meaning the base will print N “#” signs, and any steps above will have a single space to the right for each step up when given a positive number. Following the same approach, we’ll navigate to our exercises/ directory and create a new directory called steps/, then we’ll jump into the directory and create our index.…

Read more »

Capitalizer

This particular exercise should be a breeze after some of the exercises that we’ve already gone through. Given a string, capitalize the first letter of each word in that string. Once again, we have some setup to take care of - creating our directory and files. mkdir capitalizer && cd capitalizer/ && touch index.js test.js Then get some tests into our test.js file: const capitalize = require(‘./index’); test(‘Capitalize exists’, () => { expect(typeof capitalize).…

Read more »

Anagram Check

It’s time to work through another (easy) exercise in javascript. This time we’ll be working through an anagram checker function. Just so that we’re all on the same page I’ve taken the liberty of pulling up an official definition of “anagram”: > a word, phrase, or sentence formed from another by rearranging its letters: “Angel” is an anagram of “glean.”. Pretty much what we are about to set out to do is see if the letters contained within the two string parameters match.…

Read more »

Array Chunk

Today we’ll be working through an exercise where the input is an array [1,2,3,4,5] and a size 2. Based on that input our goal is to write a function that will take the original array and return a new multidimensional (nested) array with the elements each of the size param that was passed in. It’ll probably be easier to understand based on this example: chunk([1,2,3,4,5], 2) => [ [1,2], [3,4], [5]] This problem should be easier to reason about now that we’ve seen a example.…

Read more »