Skip to content

Commit 002762f

Browse files
authored
[ZT] fix Tunnel Terraform example (#24250)
* update tunnel terraform example * fix indent * update ansible example
1 parent e3c1421 commit 002762f

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

src/content/docs/cloudflare-one/connections/connect-networks/deployment-guides/ansible.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ The following configuration will modify settings in your Cloudflare account.
9595
resource "cloudflare_zero_trust_tunnel_cloudflared" "gcp_tunnel" {
9696
account_id = var.cloudflare_account_id
9797
name = "Ansible GCP tunnel"
98+
config_src = "cloudflare"
9899
}
99100
100101
# Reads the token used to run the tunnel on the server.
@@ -146,7 +147,7 @@ The following configuration defines the specifications for the GCP virtual machi
146147
```txt
147148
# Selects the OS for the GCP VM.
148149
data "google_compute_image" "image" {
149-
family = "ubuntu-minimal-2004-lts"
150+
family = "ubuntu-2204-lts"
150151
project = "ubuntu-os-cloud"
151152
}
152153

src/content/docs/cloudflare-one/connections/connect-networks/deployment-guides/terraform.mdx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ The following configuration will modify settings in your Cloudflare account.
138138
resource "cloudflare_zero_trust_tunnel_cloudflared" "gcp_tunnel" {
139139
account_id = var.cloudflare_account_id
140140
name = "Terraform GCP tunnel"
141+
config_src = "cloudflare"
141142
}
142143
143144
# Reads the token used to run the tunnel on the server.
@@ -164,7 +165,7 @@ The following configuration will modify settings in your Cloudflare account.
164165
ingress = [
165166
{
166167
hostname = "http_app.${var.cloudflare_zone}"
167-
service = "http://httpbin:8080"
168+
service = "http://httpbin:80"
168169
},
169170
{
170171
service = "http_status:404"
@@ -247,7 +248,7 @@ The following configuration will modify settings in your Cloudflare account.
247248
config {
248249
ingress_rule {
249250
hostname = "${cloudflare_record.http_app.hostname}"
250-
service = "http://httpbin:8080"
251+
service = "http://httpbin:80"
251252
}
252253
ingress_rule {
253254
service = "http_status:404"
@@ -305,7 +306,7 @@ The following configuration defines the specifications for the GCP virtual machi
305306
```tf
306307
# OS the server will use
307308
data "google_compute_image" "image" {
308-
family = "ubuntu-minimal-2004-lts"
309+
family = "ubuntu-2204-lts"
309310
project = "ubuntu-os-cloud"
310311
}
311312
@@ -347,7 +348,7 @@ The following configuration defines the specifications for the GCP virtual machi
347348
```tf
348349
# OS the server will use
349350
data "google_compute_image" "image" {
350-
family = "ubuntu-minimal-2004-lts"
351+
family = "ubuntu-2204-lts"
351352
project = "ubuntu-os-cloud"
352353
}
353354

src/content/partials/cloudflare-one/terraform/providers-v5.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ terraform {
77
required_providers {
88
cloudflare = {
99
source = "cloudflare/cloudflare"
10-
version = ">= 5.3.0"
10+
version = ">= 5.8.2"
1111
}
1212
google = {
1313
source = "hashicorp/google"

0 commit comments

Comments
 (0)