How to do it...

Firstly, we need to ensure that we have our tooling configured correctly as per the instructions in the Getting Ready section.

To confirm, we should have the following environment variables defined in our working shell:

export PATH=~/Library/Python/<version>/bin/:$PATHexport AWS_ACCESS_KEY_ID=xxxxxxxxexport AWS_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxexport AWS_DEFAULT_REGION=us-west-2

For this recipe, the examples will use us-west-2 as the AWS region. Any region may be used--however, we suggest using a region in which no previous resources have been deployed.

Let's enter the micro folder (as we left it in the previous recipe), and create a cluster directory:

$ cd micro$ mkdir cluster

The cluster folder will store our local cluster ...

Get Node Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.