Skip to content

Commit

Permalink
Set provider = google-beta on dns_managed_zone_quickstart - beta-only…
Browse files Browse the repository at this point in the history
  • Loading branch information
melinath authored Jun 21, 2022
1 parent 40e4139 commit 7f33645
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# [START dns_domain_tutorial]
# to setup a web-server
resource "google_compute_instance" "default" {
provider = google-beta
name = "<%= ctx[:vars]['dns_compute_instance'] %>"
machine_type = "g1-small"
zone = "us-central1-b"
Expand All @@ -26,8 +27,9 @@ resource "google_compute_instance" "default" {

# to allow http traffic
resource "google_compute_firewall" "default" {
name = "<%= ctx[:vars]['allow_http_traffic'] %>"
network = "default"
provider = google-beta
name = "<%= ctx[:vars]['allow_http_traffic'] %>"
network = "default"
allow {
ports = ["80"]
protocol = "tcp"
Expand All @@ -37,6 +39,7 @@ resource "google_compute_firewall" "default" {

# to create a DNS zone
resource "google_dns_managed_zone" "<%= ctx[:primary_resource_id] %>" {
provider = google-beta
name = "<%= ctx[:vars]['example_zone_googlecloudexample'] %>"
dns_name = "googlecloudexample.com."
description = "Example DNS zone"
Expand All @@ -45,6 +48,7 @@ resource "google_dns_managed_zone" "<%= ctx[:primary_resource_id] %>" {

# to register web-server's ip address in DNS
resource "google_dns_record_set" "default" {
provider = google-beta
name = google_dns_managed_zone.default.dns_name
managed_zone = google_dns_managed_zone.default.name
type = "A"
Expand Down

0 comments on commit 7f33645

Please sign in to comment.