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: “By convention, we have three files: main.tf
, which contains the main code, variables.tf
, which defines the variables that need to be passed to the module, and outputs.tf
, which contains the information passed back to the calling module.”
A block of code is set as follows:
output "public_ip_address" { value = var.static_ip ? google_compute_instance.this.network_interface.0.access_config.0.nat_ip : null } output "private_ip_address" { value = google_compute_instance.this.network_interface.0.network_ip } output "self_link" { value = google_compute_instance.this.self_link }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
module "deny_ssh_ingress" { source = "terraform-google-modules/network/google//modules/firewall-rules" version = "5.2.0" project_id = var.project_id network_name = module.network.network_name
Any command-line input or output is written as follows:
$ terraform init $ terraform apply $ terraform state list
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: “Using Web Console, go to Cloud Overview | Activity, and look at the…”
Tips or important notes
Appear like this.