Skip to content

Commit 023fd70

Browse files
authored
Merge pull request #16 from particuleio/feat/add-private-networking-support
feat(net): add support for private_network
2 parents 8bdbf1b + a7af7bc commit 023fd70

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

locals.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ locals {
4242
settings = {}
4343
acls = []
4444
dbs = []
45+
46+
private_network = {}
4547
}
4648
databases = {
4749
for database_name, config in var.databases :

main.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,13 @@ resource "scaleway_rdb_instance" "this" {
2020
project_id = lookup(each.value, "project_id", null)
2121

2222
tags = lookup(each.value, "tags", [])
23+
24+
dynamic "private_network" {
25+
for_each = lookup(each.value, "private_network", {}) != {} ? [1] : []
26+
27+
content {
28+
ip_net = lookup(each.value.private_networking, "ip_net", null)
29+
pn_id = lookup(each.value.private_networking, "pn_id", null)
30+
}
31+
}
2332
}

0 commit comments

Comments
 (0)