Skip to content

Commit 7d36acb

Browse files
committed
chore: fix deprecated hcloud attribute in examples
1 parent 272ed94 commit 7d36acb

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ This example is adapted from the pure HCL example in [What is Terraform / OpenTo
6161
image = "debian-13";
6262
name = "myserver.example.org";
6363
server_type = "cx23";
64-
datacenter = "nbg1-dc3";
64+
location = "nbg1";
6565
ssh_keys = [ "\${hcloud_ssh_key.my_key.id}" ];
6666
public_net = {
6767
ipv4_enabled = true;

src/what-is-terranix.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ resource "hcloud_server" "myserver" {
7575
image = "debian-13"
7676
name = "myserver.example.org"
7777
server_type = "cx23"
78-
datacenter = "nbg1-dc3"
78+
location = "nbg1"
7979
ssh_keys = [ hcloud_ssh_key.my_key.id ]
8080
public_net {
8181
ipv4_enabled = true
@@ -109,7 +109,7 @@ One could store this to `myserver.tf.json`:
109109
"image": "debian-12",
110110
"name": "myserver.example.org",
111111
"server_type": "cx22",
112-
"datacenter": "nbg1-dc3",
112+
"location": "nbg1",
113113
"ssh_keys": ["${hcloud_ssh_key.my_key.id}"],
114114
"public_net": {
115115
"ipv4_enabled": true,

0 commit comments

Comments
 (0)