Skip to content

Commit 256103d

Browse files
modular-magicianGhaleb Al-habian
andauthored
remove DNS resources to fix SSL test (#6726) (#4819)
Co-authored-by: Ghaleb Al-habian <[email protected]> Signed-off-by: Modular Magician <[email protected]> Signed-off-by: Modular Magician <[email protected]> Co-authored-by: Ghaleb Al-habian <[email protected]>
1 parent 7be0b1c commit 256103d

File tree

3 files changed

+3
-26
lines changed

3 files changed

+3
-26
lines changed

.changelog/6726.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
3+
```

google-beta/resource_compute_managed_ssl_certificate_generated_test.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -101,24 +101,11 @@ resource "google_compute_http_health_check" "default" {
101101
timeout_sec = 1
102102
}
103103
104-
resource "google_dns_managed_zone" "zone" {
105-
name = "dnszone%{random_suffix}"
106-
dns_name = "sslcert.tf-test.club."
107-
}
108-
109104
resource "google_compute_global_forwarding_rule" "default" {
110105
name = "tf-test-forwarding-rule%{random_suffix}"
111106
target = google_compute_target_https_proxy.default.id
112107
port_range = 443
113108
}
114-
115-
resource "google_dns_record_set" "set" {
116-
name = "sslcert.tf-test.club."
117-
type = "A"
118-
ttl = 3600
119-
managed_zone = google_dns_managed_zone.zone.name
120-
rrdatas = [google_compute_global_forwarding_rule.default.ip_address]
121-
}
122109
`, context)
123110
}
124111

website/docs/r/compute_managed_ssl_certificate.html.markdown

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -108,24 +108,11 @@ resource "google_compute_http_health_check" "default" {
108108
timeout_sec = 1
109109
}
110110
111-
resource "google_dns_managed_zone" "zone" {
112-
name = "dnszone"
113-
dns_name = "sslcert.tf-test.club."
114-
}
115-
116111
resource "google_compute_global_forwarding_rule" "default" {
117112
name = "forwarding-rule"
118113
target = google_compute_target_https_proxy.default.id
119114
port_range = 443
120115
}
121-
122-
resource "google_dns_record_set" "set" {
123-
name = "sslcert.tf-test.club."
124-
type = "A"
125-
ttl = 3600
126-
managed_zone = google_dns_managed_zone.zone.name
127-
rrdatas = [google_compute_global_forwarding_rule.default.ip_address]
128-
}
129116
```
130117
<div class = "oics-button" style="float: right; margin: 0 0 -15px">
131118
<a href="https://console.cloud.google.com/cloudshell/open?cloudshell_git_repo=https%3A%2F%2Fgithub.com%2Fterraform-google-modules%2Fdocs-examples.git&cloudshell_working_dir=managed_ssl_certificate_recreation&cloudshell_image=gcr.io%2Fgraphite-cloud-shell-images%2Fterraform%3Alatest&open_in_editor=main.tf&cloudshell_print=.%2Fmotd&cloudshell_tutorial=.%2Ftutorial.md" target="_blank">

0 commit comments

Comments
 (0)