October 2017
Intermediate to advanced
326 pages
7h 20m
English
Up until now, we have only created resources and stored the state of or cloud data center in an online bucket. Now you are going to learn how to modify the existing infrastructure from a project such as the one we built earlier on.
As you can see, we started from a very simple example: create a single virtual machine with an ephemeral IP address (the default one assigned by Google, not fixed).
Now, we are going to create a static IP and assign it to our machine so it always uses the same IP. The way of doing this through Terraform is creating a resource of the type google_compute_address, as follows:
resource "google_compute_address" "my-first-ip" { name = "static-ip-address"}
Now, we can execute terraform plan ...
Read now
Unlock full access