Skip to content

Commit 3cc4d4e

Browse files
committed
chore: update provider version
1 parent 551f016 commit 3cc4d4e

File tree

4 files changed

+26
-8
lines changed

4 files changed

+26
-8
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
name: Test
22

33
on:
4-
push:
5-
branches: [ main ]
6-
pull_request:
7-
branches: [ main ]
4+
workflow_dispatch:
5+
# Do not run the workflow automatically until the test files have been updated.
6+
# push:
7+
# branches: [ main ]
8+
# pull_request:
9+
# branches: [ main ]
810

911
jobs:
1012

examples/basic/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_providers {
33
upcloud = {
44
source = "UpCloudLtd/upcloud"
5-
version = "~> 2.4"
5+
version = "~> 5.23"
66
}
77
}
88
}

main.tf

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_providers {
33
upcloud = {
44
source = "UpCloudLtd/upcloud"
5-
version = "~> 2.4"
5+
version = "~> 5.23"
66
}
77
}
88
}
@@ -12,7 +12,19 @@ resource "upcloud_loadbalancer" "main" {
1212
name = var.name
1313
plan = var.plan
1414
zone = var.zone
15-
network = var.network
15+
16+
networks {
17+
name = "public"
18+
family = "IPv4"
19+
type = "public"
20+
}
21+
22+
networks {
23+
name = "private"
24+
family = "IPv4"
25+
network = var.network
26+
type = "private"
27+
}
1628
}
1729

1830
resource "upcloud_loadbalancer_backend" "main" {
@@ -37,6 +49,10 @@ resource "upcloud_loadbalancer_frontend" "main" {
3749
mode = "http"
3850
port = var.frontend_port
3951
default_backend_name = upcloud_loadbalancer_backend.main.name
52+
53+
networks {
54+
name = upcloud_loadbalancer.main.networks[0].name
55+
}
4056
}
4157

4258
resource "upcloud_loadbalancer_dynamic_certificate_bundle" "main" {

outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ output "id" {
33
}
44

55
output "dns_name" {
6-
value = upcloud_loadbalancer.main.dns_name
6+
value = upcloud_loadbalancer.main.networks[0].dns_name
77
}
88

99
output "backend_name" {

0 commit comments

Comments
 (0)