Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “Using the Terraform CLI, the developers were able to roll out the entire infrastructure stack using a single terraform
deploy
command.”
A block of code is set as follows:
InstanceTargetGroup: Type: AWS::ElasticLoadBalancingV2::TargetGroup Properties: HealthCheckEnabled: true TargetType: instance Protocol: HTTP Port: 8080 VpcId: Fn::ImportValue: 'Fn::Sub': "${NetworkStackName}-vpc-id"}
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
@app.post("/<id>/delete")def delete(id): if (request.method == "POST"): logging.info('Deleting task represented by ID: \'%s\' ',ObjectId(id)) todos_collection.delete_one({"_id": ObjectId(id)}) return redirect(url_for('todos'))
Any command-line input or output is written as follows:
$ npm install$ cdk synth
Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “In the later chapters, we will learn about the relevant AWS services, such as CloudFormation and Cloud Development Kit (CDK).”
Tips or important notes
Appear like this.