The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

375637 (8) [Avatar] Offline
When I run ./, I got

An error occurred (InvalidVpcID.NotFound) when calling the CreateSecurityGroup operation: The vpc ID 'None' does not exist

~$ aws ec2 describe-vpcs
    "Vpcs": [
            "CidrBlock": "",
            "DhcpOptionsId": "xxxx-xxxx",
            "State": "available",
            "VpcId": "vpc-xxxx",
            "InstanceTenancy": "default",
            "CidrBlockAssociationSet": [
                    "AssociationId": "vpc-cidr-assoc-xxxxxxxx",
                    "CidrBlock": "",
                    "CidrBlockState": {
                        "State": "associated"
            "IsDefault": false

I can only made the script works by changing "isDefault" to false:

VPCID="$(aws ec2 describe-vpcs --filter "Name=isDefault, Values=false" --query "Vpcs[0].VpcId" --output text)"

Is my VPC configuration misconfigured in order to use the script?
375637 (8) [Avatar] Offline
It seems like I don't have default VPC. I think I created this account for US East region pre-2012, and creating default VPC is not straight forward (I have yet to find any instruction on how to create one, except contacting technical support, but my basic support plan doesn't includes technical support).

I can see that my other regions (US West - N. Cal etc) has the default VPC.

$ aws ec2 create-default-vpc

An error occurred (OperationNotPermitted) when calling the CreateDefaultVpc operation: Accounts on the EC2-Classic platform cannot create a default VPC.

The chapter 4 nodecc depends on this default VPC. How do I proceed?
Michael Wittig (103) [Avatar] Offline

from the book:

If you created your existing AWS account before 2013-12-04 please create a new one as there are some legacy issues that might cause some trouble during our examples.

Let me know if it works with a fresh account.