You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Use a local variable to compute a hash of the SSH keys
36
+
locals {
37
+
ssh_keys_hash = sha256(join(",", [
38
+
scaleway_iam_ssh_key.key1.public_key,
39
+
scaleway_iam_ssh_key.key2.public_key,
40
+
]))
41
+
}
42
+
43
+
resource "scaleway_vpc_public_gateway" "main" {
44
+
name = "public_gateway_demo"
45
+
type = "VPC-GW-S"
46
+
tags = ["demo", "terraform"]
47
+
bastion_enabled = true
48
+
bastion_port = 61000
49
+
refresh_ssh_keys = local.ssh_keys_hash
50
+
}
51
+
```
52
+
21
53
## Argument Reference
22
54
23
55
The following arguments are supported:
@@ -28,10 +60,11 @@ The following arguments are supported:
28
60
-`zone` - (Defaults to [provider](../index.md#zone)`zone`) The [zone](../guides/regions_and_zones.md#zones) in which the public gateway should be created.
29
61
-`project_id` - (Defaults to [provider](../index.md#project_id)`project_id`) The ID of the project the public gateway is associated with.
30
62
-`upstream_dns_servers` - (Optional) override the gateway's default recursive DNS servers, if DNS features are enabled.
31
-
-`ip_id` - (Optional) attach an existing flexible IP to the gateway
32
-
-`bastion_enabled` - (Optional) Enable SSH bastion on the gateway
63
+
-`ip_id` - (Optional) attach an existing flexible IP to the gateway.
64
+
-`bastion_enabled` - (Optional) Enable SSH bastion on the gateway.
33
65
-`bastion_port` - (Optional) The port on which the SSH bastion will listen.
34
-
-`enable_smtp` - (Optional) Enable SMTP on the gateway
66
+
-`enable_smtp` - (Optional) Enable SMTP on the gateway.
67
+
-`refresh_ssh_keys` - (Optional) Trigger a refresh of the SSH keys on the public gateway by changing this field's value.
0 commit comments