liveBook · Manning

Network

As explained in Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform

A network is the interconnected communication infrastructure that enables systems and users to exchange data.

A network provides connectivity between application systems and users. In infrastructure practice, it is a deployable resource that servers, queues, load balancers, and other components depend on. section 1.1 section 9.2.5

Treat networks as explicit, changeable infrastructure:

  • Parameterize the network instead of hardcoding an environment-specific name, making configurations reusable across development and production. section 2.3.5
  • Model dependencies clearly: queues and servers depend on the network, while load balancers and DNS depend on deployed services. section 9.2.5
  • Review deletion carefully when a network is shared, confirm inactivity, remove references, and then remove its infrastructure-as-code definitions. section 9.2.5

Reusable server network

A Python function accepts a server name and network name, generates Terraform JSON, initializes Terraform, applies the configuration, verifies the instance’s network, and can destroy it afterward. section 2.3.5

How Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform covers it

How deep it goes
Explains network selection, parameterization, dependency ordering, and decommissioning, but stops short of network protocol internals.
Examples
Uses a parameterized GCP network, a Terraform-managed server, and blue-green network deletion after traffic migration and inactivity review.
What it assumes
Assumes familiarity with application infrastructure and cloud resources while establishing networks as explicit dependencies and configurable resources.
What you can do after
Operate/configure networks through parameterized Python and Terraform definitions, verify deployments, and retire unused environments safely.
How it connects
Connects networks with infrastructure as code, virtual networks, servers, queues, load balancers, DNS, and blue-green deployment.

Also explained in

Compare how 3 books explain network →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform. The section links point to the parts of the book it draws on.