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
… test (#6147) (#4396)

Resolved hashicorp/terraform-provider-google#11821

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician authored Jun 21, 2022
1 parent 8d5774b commit 287e3f4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/6147.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
8 changes: 6 additions & 2 deletions google-beta/resource_dns_managed_zone_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ func testAccDNSManagedZone_dnsManagedZoneQuickstartExample(context map[string]in
return Nprintf(`
# to setup a web-server
resource "google_compute_instance" "default" {
provider = google-beta
name = "tf-test-dns-compute-instance%{random_suffix}"
machine_type = "g1-small"
zone = "us-central1-b"
Expand All @@ -77,8 +78,9 @@ resource "google_compute_instance" "default" {
# to allow http traffic
resource "google_compute_firewall" "default" {
name = "tf-test-allow-http-traffic%{random_suffix}"
network = "default"
provider = google-beta
name = "tf-test-allow-http-traffic%{random_suffix}"
network = "default"
allow {
ports = ["80"]
protocol = "tcp"
Expand All @@ -88,6 +90,7 @@ resource "google_compute_firewall" "default" {
# to create a DNS zone
resource "google_dns_managed_zone" "default" {
provider = google-beta
name = "tf-test-example-zone-googlecloudexample%{random_suffix}"
dns_name = "googlecloudexample.com."
description = "Example DNS zone"
Expand All @@ -96,6 +99,7 @@ resource "google_dns_managed_zone" "default" {
# 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 287e3f4

Please sign in to comment.