-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update examples from 0.11 syntax to 0.12 syntax
- Loading branch information
Showing
16 changed files
with
256 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
output "application_public_ip" { | ||
value = "${google_compute_global_forwarding_rule.default.ip_address}" | ||
value = google_compute_global_forwarding_rule.default.ip_address | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
resource "google_compute_address" "ip_address" { | ||
# We'll only generate this block if the value of | ||
# has_labels is 0! Effectively an if statement. | ||
count = "${1 - local.has_labels}" | ||
count = 1 - local.has_labels | ||
|
||
name = "${var.name}" | ||
name = var.name | ||
} | ||
|
||
resource "google_compute_address" "ip_address_beta" { | ||
# And this block is only present if we have | ||
# at least one entry, effectively an elif. | ||
count = "${local.has_labels}" | ||
count = local.has_labels | ||
|
||
name = "${var.name}" | ||
labels = "${var.labels}" | ||
name = var.name | ||
labels = var.labels | ||
} |
Oops, something went wrong.