AWS Cookbook

Errata for AWS Cookbook

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
Page n/a
page 51

Problem on github files from chapter 203

on the file by typing all those command go through
cd 203-Utilizing-Internet-Gateways/cdk-AWS-Cookbook-203/
test -d .venv || python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt

apart for the deployment

cdk deploy

it gives this error

Traceback (most recent call last):
File "", line 9, in <module>
CdkAwsCookbook203Stack(app, "cdk-aws-cookbook-203")
File "/Users/johncarlosbuen/AWSCookbook/Networking/203-Utilizing-Internet-Gateways/cdk-AWS-Cookbook-203/.venv/lib/python3.8/site-packages/jsii/", line 86, in __call__
inst = super().__call__(*args, **kwargs)
File "/Users/johncarlosbuen/AWSCookbook/Networking/203-Utilizing-Internet-Gateways/cdk-AWS-Cookbook-203/cdk_aws_cookbook_203/", line 17, in __init__
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/", line 341, in __getattr__
raise AttributeError(name) from None
AttributeError: ISOLATED
Subprocess exited with error 1

seems the subnet_type must be the following subnet_type=ec2.SubnetType.PRIVATE_ISOLATED
subnet_type=ec2.SubnetType.ISOLATED this has been deprecated

Note from the Author or Editor:
Updated deprecated ec2.SubnetType ENUM in supporting GitHub repo file:

john  Mar 07, 2022